incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <>
Subject Re: database limits: how many dbs can I have in one couchdb instance
Date Fri, 27 Sep 2013 12:37:32 GMT
On 09/27/2013 12:44 PM, Dave Cottlehuber wrote:
>> Hi all,
>> meanwhile the patch for "validate_doc_read" is not applied I am studying
>> different workarounds.
>> One valid solution for our use case is to create a db for each user and
>> store the user specific stuff in that db.
>> That has the benefit that we can limit the access to that db with the
>> standard security mechanism and we do not
>> need to fall back to middleware logic.
>> The biggest problem I see in the approach is that we need to know what
>> is the max number of "user" db
>> we can have in one instance. Regarding the size of this db it is
>> expected to be a couple of smaller docs.
>> Somebody has experience with that? Like rule of thumb do not deploy more
>> then 10k databases in one instance ...
>> TIA for any thoughts.
>> salu2
>> --
>> Thorsten Scherler  
>> codeBusters S.L. - web based systems
> Hi Thorsten,
> The number of DBs doesn't really matter, barring sane OS limits of files/dir.
> CouchDB uses an LRU cache to keep an appropriate number of DB handles
> open for active connections.
> A better set of questions to ask is:
> - how many active concurrent users (=== DBs) do you expect?
> - what sort of replication (esp filtered, continuous …) do you expect?
> A+
> Dave

Actually it is hard to estimate the number of user since we are building
a "online web-app generator and personal crawler". I would estimate a
exponential grow rate, but in the beginning the number of user would be
quite low and as well the growth rate is slow in the start. Regarding
the replication we would have the production system a backup server that
does continuous replication. We are still in the design phase for the
overall architecture.


Thorsten Scherler <>
codeBusters S.L. - web based systems
<consulting, training and solutions>

View raw message