On Thu, 2010-10-28 at 10:29 +0200, Nils Breunese wrote:

> Jeffrey M. Barber wrote:
> 
> > Is it a good idea to have a single application work inside of a single
> > CouchDB database?
> >
> > Right now, I'm making sure each document I put into the CouchDB has a 'ns'
> > field (for namespace) so I can pull it out for indexing, but I'm thinking
> > that as this grows this may be a bad idea. Is it worth pulling out each ns
> > into a database? or is this just going to be a pre-optimization in the long
> > term.
> 
> Using an ns-like property is a commonly used pattern in CouchDB databases. I 
> don't think it's worth it to start splitting up your database. You lose some 
> flexibility as functions exist on a database-level and cannot work across 
> different databases and I don't see any real advantage in doing it.
> 
> Nils.
> ------------------------------------------------------------------------
>  VPRO
>  phone:  +31(0)356712911
>  e-mail: [email protected]
>  web:    www.vpro.nl
> ------------------------------------------------------------------------


I'm very glad to hear this, as it is the pattern I opted for also.

Dan

Reply via email to