在我的应用程序中,我需要使用 JSON 从服务器检索 1000-10000 条记录,并且需要将其存储在 sqlite DB 中以备后用。
for (i = 0; i < results.rows.length; i++)
{
//code to insert it into local DB
}
我在这个过程中使用了“for循环”。我知道这在处理大数据(1000 条记录)时不好。但我不知道加快速度的替代方法/处理此问题的最佳方法。如果有人对此有所了解,请帮助我。
谢谢,