couchbase view必读

CouchDB的视图更新可能会很慢,通常在读取时处理所有更新过的文档。可以通过优化reduce函数、使用内置函数提高性能。查询视图时,使用&stale参数来控制是否等待最新索引。对于分页,可以利用startkey、limit和total_rows进行高效处理。
摘要由CSDN通过智能技术生成


0.

Views and Indexes

https://github.com/couchbaselabs/docs-ng/blob/master/content/couchbase-manual-2.0/views-and-indexes.markdown

1.  

CouchDB view is extremely slow

http://stackoverflow.com/questions/3909566/couchdb-view-is-extremely-slow

Views are only updated the next time they are read. Upon reading, it processes all the documents that have been updated (created, updated, deleted) since the last time the view was read.

So even if you're view was defined before inserting the 3890000 documents, it will be processing the 3890000 documents for the view.

From 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值