CouchDB 2 global_changes 系统表变得非常大

标签 couchdb

我们有一个系统,它基本上将 250MB 的数据写入我们的 CouchDB 2 实例,它在 global_changes 数据库中每天生成约 50GB。

这使得 CouchDB2 消耗了所有磁盘。

一旦进入这种状态,CouchDB2 就会消失,再也不会回来。

我们想知道是否有任何方法可以限制 global_changes 表的大小,或者是否有管理此表的方法,例如一组最佳实践。

最佳答案

tldr:删除它

http://docs.couchdb.org/en/latest/install/setup.html#single-node-setup

状态:

Note that the last of these (referring to _global_changes) is not necessary if you do not expect to be using the global changes feed. Feel free to delete this database if you have created it, it has grown in size, and you do not need the function (and do not wish to waste system resources on compacting it regularly.

关于CouchDB 2 global_changes 系统表变得非常大,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43452631/

相关文章:

CouchDB 中的分页?

javascript - Couchdb/Pouchdb 多个用户和多个文档之间的关系

jquery - 使用 CouchJS 需要哪些 jQuery?

apache - PouchDB View 按键查找

mongodb - future 整个应用程序中是否可以使用基于文档的数据库来代替 RDBMS?

ruby-on-rails - 对于在 CouchDB 上运行的 Rails 3,我应该使用哪个身份验证 gem/插件?

javascript - Couchdb _design/doc/_update/push 不能作为对象工作

node.js - 使用 nano 从 View 中读取数据

java - 删除 CouchDB 中过期的文档

ruby-on-rails - Ruby on Rails 动态模型