dbTalk Databases Forums  

Limits on file size in Berkeley DB

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


Discuss Limits on file size in Berkeley DB in the comp.databases.berkeley-db forum.



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

Default Limits on file size in Berkeley DB - 05-05-2006 , 12:53 AM






Hi Everyone,

My query is about how applications deal with databases whose size
exceeds the maximum file size limit imposed by the file system.

I wrote a simple test program in Unix in which data is written to a
database stored on a disk file. Using the ulimit command in bash, I set
the file size limit to 10Mb for my shell, and ran the program in this
shell. When the database grew to more than 10Mb, the put operation
threw an exception with errno 27 (File too large).

Does this mean that my database size is now limited to 10Mb due to the
file size limit? If so, is there a way to store a database across
multiple files, so that we can get around the file limit?

Any help would be appreciated.

Thanks,
-- Abhijit


Reply With Quote
  #2  
Old   
Florian Weimer
 
Posts: n/a

Default Re: Limits on file size in Berkeley DB - 05-06-2006 , 03:20 AM






Quote:
Does this mean that my database size is now limited to 10Mb due to the
file size limit?
Yes.

Quote:
If so, is there a way to store a database across multiple files, so
that we can get around the file limit?
No, not with the currently released Berkeley DB version.


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

Default Re: Limits on file size in Berkeley DB - 05-08-2006 , 01:06 AM




Hi Florian,

Thanks for the information.

I think it would be good to have the ability to store DBs across
multiple files in future releases. This would be particularly important
when the platform itself has a 2Gb file size limit (eg some 32bit
Linux), which would in turn limit the DB size to 2Gb without multiple
file support.

Regards,
-- Abhijit


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.