idb-js
idb-js copied to clipboard
严重的大数据查询性能问题
在本地测试了下10000条数据查询耗时8-9s左右。
而通过indexedDB的store.getAll(),拿出数据后在内存里for循环判断条件。耗时1s左右
demo代码如下:
遍历游标的方式应该是不可取的。