dbTalk Databases Forums  

how many databases I can open in one environment

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


Discuss how many databases I can open in one environment in the comp.databases.berkeley-db forum.



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

Default how many databases I can open in one environment - 12-20-2005 , 01:48 PM






Hi,

BDB's environment is counterpart of database in MySQL ( or RDBMS),
right? BDB's database is like a table in mysql.

I just wonder, how many bdb databases I can open in one environment
without slowing down the system significantly. I guess it will slow
down the system, if you open too many database.

somebody get and idea on this.

thanks

David


Reply With Quote
  #2  
Old   
nittanymountain@gmail.com
 
Posts: n/a

Default Re: how many databases I can open in one environment - 12-20-2005 , 02:05 PM






I found this
http://dev.sleepycat.com/resources/f...ction%3Dsearch


Reply With Quote
  #3  
Old   
Patrick Schaaf
 
Posts: n/a

Default Re: how many databases I can open in one environment - 12-21-2005 , 12:49 AM



"nittanymountain (AT) gmail (DOT) com" <nittanymountain (AT) gmail (DOT) com> writes:

Quote:
I just wonder, how many bdb databases I can open in one environment
without slowing down the system significantly. I guess it will slow
down the system, if you open too many database.
As a real world data point, I have about 250 databases in a single
environment, two each in a single backing file, i.e. about 125
backing files with two tables each.

At application startup, opening the databases (DB_NOSYNC) takes a total
of about 7 seconds, on a contemporary x86 dual-processor / mirrored-SCSI
setup. The time went up linearly with the number of databases, as far
as I can feel to remember

best regards
Patrick


Reply With Quote
  #4  
Old   
bostic@sleepycat.com
 
Posts: n/a

Default Re: how many databases I can open in one environment - 12-28-2005 , 09:52 AM




nittanymountain (AT) gmail (DOT) com wrote:
Quote:
BDB's environment is counterpart of database in MySQL ( or RDBMS),
right? BDB's database is like a table in mysql.
Yes, that is correct.

Quote:
I just wonder, how many bdb databases I can open in one environment
without slowing down the system significantly. I guess it will slow
down the system, if you open too many database.
Having a large number of open databases should not affect the run-time
characteristics of the Berkeley DB system, with the single exception of
checkpoint operations, as checkpoint writes information about the set
of open databases into the log. Sleepycat Software has customer
applications that have 1000's of open databases, without run-time
performance problems.

That said, I would suggest building with the current 4.4 release --
there were fixes between the 4.3 and 4.4 releases to minimize the
impact of large numbers of open databases on the system (specifically,
transaction checkpoint and cache flush operations could hold mutexes
across file sync operations, and with enough open file descriptors,
that could be a problem).

Opening a database is a fairly heavy-weight operation in Berkeley DB,
however, so the initial opening of a large number of databases is
likely to take a fair amount of time in the application.

Regards,
--keith

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic bostic (AT) sleepycat (DOT) com
Sleepycat Software Inc. keithbosticim (Yahoo IM)
118 Tower Rd. +1-781-259-3139
Lincoln, MA 01773 http://www.sleepycat.com



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.