开发者

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

开发者 https://www.devze.com 2023-01-07 03:48 出处:网络
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

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

精彩评论

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