incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roger Binns <rog...@rogerbinns.com>
Subject Re: Design Question
Date Sun, 06 Dec 2009 23:55:00 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthew M. Gamble wrote:
> If I go down the "one user, one DB" path is there a limit to the number of databases
I can create?  Any performance issues with having 100k+ unique databases?  

The database names are constrained (so they are unambiguous on the
filesystem - eg only lowercase ascii but you could probably base64 encode
the names if needed).  You would have problems if the underlying filesystem
is crummy - each database corresponds to a file so the filesystem should
handle that number of files.  Consequently using a NTFS filesystem while
running a virus scanner would be a bad idea :-)  Modern Linux filesystems
are fine.  You will likely also have to increase some tunables in the script
starting CouchDB such as the number of open file handles.

However only you can decide what you consider acceptable performance and
what is representative data.  You should be able to construct an appropriate
benchmark using your favourite scripting language with CouchDB bindings in a
few hours (or less!).  Do please report back the numbers you get.

  http://books.couchdb.org/relax/reference/high-performance

This will help for ulimit setting:

  https://issues.apache.org/jira/browse/COUCHDB-590

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkscRFQACgkQmOOfHg372QTn3QCdGcmVNf3Mq2H+rIkFrZvxLyaK
fTsAoIr6UyXb+l4jrkyzzyfPHEaUry/C
=BCAe
-----END PGP SIGNATURE-----

Mime
View raw message