artemb
artemb

Reputation: 9371

CouchDB best practices - all entities in a single db vs a new db for each entity?

I am starting with CouchDB. What is the accepted best practice to utilize databases? A single database per application storing all kinds of entities with smth like "_type" property to discriminate one from another or a separate database for each kind of entity?

Upvotes: 11

Views: 2148

Answers (1)

Matt Goodall
Matt Goodall

Reputation: 1682

One database with lots of different types of document, so you can take advantage of View Collation. Note that top-level names prefixed with an underscore, e.g. _type, are reserved for CouchDB.

Upvotes: 17

Related Questions