dbTalk Databases Forums  

Prefix compression?

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Prefix compression? in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
oren.tirosh@gmail.com
 
Posts: n/a

Default Prefix compression? - 03-22-2006 , 06:36 AM






According to http://www.sleepycat.com/docs/ref/am...bt_prefix.html
Berkeley DB is supposed to do prefix compression but it doesn't seem to
be working in my tests.

IIUC, adding a fixed prefix to all database keys is should increase the
database size by less than (prefix size)*(number of keys). The prefix
is supposed to be stored only once per index page. I tried it but found
no evidence of prefix compression. Running strings(1) on the database
shows the all keys with the prefix clearly visible.

Am I missing something here? I know that setting a custom comparison
function disables prefix compression but I am not using set_bt_compare.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.