Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 ydn-db 作为移动开发的 shim,但在 IOS 和记录检索方面遇到了一些糟糕的性能。
我的问题是,循环数据存储的最佳方法是什么?
现在我用
db.values() 并将限制设置为列表中的项目数(通常约为 200,但硬限制为 100)
无论如何,只是想知道循环遍历结果的最佳方法是什么。
我已经阅读了这些文档,虽然它们很广泛,但它们也令人困惑,因此我在这里发帖。
无论如何,任何帮助将不胜感激。
最好的循环方式是db.open. 它一次迭代一条记录并且非常节省内存。
db.open