dbTalk Databases Forums  

is there a way compress data before storage?

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


Discuss is there a way compress data before storage? in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
elie
 
Posts: n/a

Default is there a way compress data before storage? - 11-03-2006 , 01:36 PM






Hello,

is there a way to have berkelydb compress the data when storing it and
uncompress when retrieving? using some compression algorithm? or is
that left for us to do?

I'm using the C api, I'm planning storing ~25Kb structs in there but
the final db is too large. i was thinking about reducing the struct
size by using bitfields int he struct. but it I'm thinking it would be
easier to use some kind of compression instead.


Reply With Quote
  #2  
Old   
elie
 
Posts: n/a

Default Re: is there a way compress data before storage? - 11-03-2006 , 03:50 PM






I'm looking at using zlib.h then storing the data in berkelydb.


Reply With Quote
  #3  
Old   
Klaas
 
Posts: n/a

Default Re: is there a way compress data before storage? - 11-03-2006 , 10:24 PM




elie wrote:
Quote:
I'm looking at using zlib.h then storing the data in berkelydb.
Sounds ideal. There is no built-in way to compress data.

-Mike



Reply With Quote
  #4  
Old   
kocour_easy
 
Posts: n/a

Default Re: is there a way compress data before storage? - 11-28-2006 , 11:32 AM



Hi,
i try use bzip2 or zlib or lzo and for 1-2kb entry has best use zlib or
lzo compression. Now i use zlib compression but zlib put 96byte header
for every entry.

Klaas napsal:
Quote:
elie wrote:
I'm looking at using zlib.h then storing the data in berkelydb.

Sounds ideal. There is no built-in way to compress data.

-Mike


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.