下面是一些例子的ID:濫用pouchDB的doc 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(具有同樣的問題)
謝謝。不幸的是,當你陳述它時,pouchdb整理嘗試會顛倒我的情況下的問題。非常感謝您的時間。 – VapoRizer