Couchdb每用户数据库设计文件管理 [英] Couchdb database-per-user design document management

查看:67
本文介绍了Couchdb每用户数据库设计文件管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在评估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每用户数据库设计文件管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆