开发者

How to insert 30,000 record in SQLite database in iPhone it is possible in iPhone simulator not in Device it will crash

Currently i have facing one problem i have to call web service and download the data from the server it is around 开发者_如何学C30,000 record, it is downloaded via server but when i am inserting record into SQLite but when start the inserting record in database it will increase the memory to 20 to 150 mb in instrument control and crash the application..

So please give me the solutions for the same..


30,000 sounds like a lot. I'd Do the work in chunks.


Would have to see your code to see what's going on. Run using Allocations or Leaks tool and maybe just run it for 5000 records. See what is using up memory.

Post your code.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜