Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

BerkeleyDB values have limit?

by elgato (Novice)
on Dec 13, 2011 at 15:23 UTC ( #943364=perlquestion: print w/replies, xml ) Need Help??

elgato has asked for the wisdom of the Perl Monks concerning the following question:

Hi. I'm using BerkeleyDB module with BerkeleyDB4. Syntax like:
our %h; tie %h, "BerkeleyDB::Btree", -Filename => '/tmp/ads_export.bdb', -Flags => DB_CREATE, -Cachesize => 250 * 1024 * 1024 or die "$! $BerkeleyDB::Error\n" ; $h{aaa} = $somevalue untie %h;
Ant noticed that if value size is big (more then 500kb for example), than it's truncated, value from %h is the end of $somevalue. Are there any limits on value's size? Or some prefferences in class creation? Thanks, in advance.

Replies are listed 'Best First'.
Re: BerkeleyDB values have limit?
by Anonymous Monk on Dec 13, 2011 at 15:38 UTC

    The code you have posted does not demonstrate (prove) that value is truncated

    You need to prove it

    Moify Re: re-tie the previous db to store/retrieve 500kb value, check the length, check for equality

      I checked for equality, utf string with about 430kb, after retrieve was about 420kb, utf symbols were ok, but not null size.

        And where is your code which proves this?

        The documentation discusses a common pitfalls with nulls.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://943364]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2021-01-19 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?