Re: [h2] MVStore / MVMap key iterator performance

2014-04-04 Thread Igor Castang
No problems I will go the separate map for keys way. Thanks. regards On Thursday, April 3, 2014 12:25:12 PM UTC-4, Thomas Mueller wrote: Hi, Keys are values are stored next to each other in the same page (first all keys, then all values). Currently, when reading a page, all keys and

Re: [h2] MVStore / MVMap key iterator performance

2014-04-03 Thread Thomas Mueller
Hi, Keys are values are stored next to each other in the same page (first all keys, then all values). Currently, when reading a page, all keys and values are read and parsed (all Java objects are created). It's true that this is not always needed, but even if only the keys are parsed (which would

[h2] MVStore / MVMap key iterator performance

2014-04-02 Thread Igor castang
Hello, looking at the code and unless I am mistaken, it seems that there is no way to list all the keys present in the MVMap without loading all the values as well. Whether keyIterator() is used or keySet() it does look like the values are loaded along with the keys ( use of a CursorK,V