我正在评估Couchdb用于一个会有很多用户的Web应用程序。如果我使用每个用户的数据库模型,那么每个数据库中的设计文档都将完全相同。我没有提到作用于多个数据库的全局设计文档,也没有提及任何使所有用户数据库中的设计文档都易于更改的工具。
I am evaluating Couchdb for a web application where there would be many users. If I use the database-per-user model, presumably the design documents in every database will all be identical. I have not found any mention of 'global' design documents acting upon multiple databases, or of any tools to make it easy to change the design docs across all user databases. How is this handled?
推荐答案您可以在包含所有设计文档的模板数据库之间设置连续复制。因此,无论何时更改模板数据库,用户数据库都会得到更新。
You can setup continuous replication between a template database that contains all your design documents. So whenever you change the template database, user's database gets updated.
更多推荐
Couchdb每用户数据库设计文件管理
发布评论