[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: MaxDBs



Ben Johnson writes:
> Is there an upper limit to mdb_env_set_maxdbs()?

In theory INT_MAX or memory limits (see below), not that it'd be a good
idea to go that high.

> And what's the overhead for adding additional DBs?

Around 60 bytes malloc & init overhead per DB for each txn and env, or
half that on a 32-bit machine.  Also time to scan some of that memory
now and then.

> Can I change this number once it's set if I close and reopen the env?

Yes. It only affects the MDB_env structure, not the database.

-- 
Hallvard