11

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?

artemb
  • 9,251
  • 9
  • 48
  • 68

1 Answers1

17

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.

Octavian Helm
  • 39,405
  • 19
  • 98
  • 102
Matt Goodall
  • 1,682
  • 10
  • 7