【发布时间】:2016-03-04 01:29:02
【问题描述】:
以下是一些示例 ID:
someText_1
someText_2
someText_3
someOtherText_1
someOtherText_2
我想得到下划线后数值最大的“someText”元素:someText_3
allDocs({startkey: 'someText_', endkey: 'someText_\uffff'});
将产生所有“someText_”元素。 有没有办法只接收“someText_3”?我想避免 map/reduce 查询,因为保证的本地存储空间非常有限。
我已经读过了:
http://pouchdb.com/2014/05/01/secondary-indexes-have-landed-in-pouchdb.html(不使用 map/reduce 时)
Pouchdb document id complex key(也有同样的问题)
【问题讨论】:
标签: javascript database key pouchdb