Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: BerkeleyDB and a very large file

by alexm (Chaplain)
on Aug 22, 2008 at 01:06 UTC ( #706033=note: print w/ replies, xml ) Need Help??


in reply to Re: BerkeleyDB and a very large file
in thread BerkeleyDB and a very large file

Another one, quite important: BerkeleyDB files are platform dependant, i.e. you cannot use a little-endian file on a big-endian platform and vice versa.

On the other hand, BerkeleyDB doesn't provide network support, it's file based only.


Comment on Re^2: BerkeleyDB and a very large file
Re^3: BerkeleyDB and a very large file
by Anonymous Monk on Aug 22, 2008 at 07:41 UTC

      Well, you might think they can be used, but this notice on the Selecting a byte order shows that they're not actually so usable:

      It is important to note that the Berkeley DB access methods do no data conversion for application specified data. Key/data pairs written on a little-endian format architecture will be returned to the application exactly as they were written when retrieved on a big-endian format architecture.

      Thus, if I'm getting it right, you can actually read a BerkeleyDB file from a different platform, but first you'll have to convert both keys and data to native form in order to use them.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-12-20 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls