Berkeley DB: Retrieving only keys -


i retrieving range of keys in berkeley db database using cursor. using db_set_range flag followed number of gets using db_next flag.

everything works fine. problem need keys particular operation both keys , associated values. since values can pretty large (hundreds of kilobytes), avoid retrieving them. ideas?

interesting problem. dont believe possible keys alone.

one approach store keys in own database 0 data. if cant stand duplication, think best approach bulk read, since have definition locality of reference range of values. use db_multiple_key flag in dbc::get() call, , large dbt buffer data. use dbmultiplekeydataiterator iterate bulk retrieved block.

this should improve things consecutive leaf items in retrieval result in efficient page copies dbt temporary buffer use in dbc::get.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -