开发者

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 applicatio开发者_开发技巧n storing all kinds of entities with smth like "_type" property to discriminate one from another or a separate database for each kind of entity?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜