Bhavesh Dhaduk
Bhavesh Dhaduk

Reputation: 1906

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 30,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..

Upvotes: 0

Views: 524

Answers (2)

Fraggle
Fraggle

Reputation: 8727

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.

Upvotes: 0

Brad The App Guy
Brad The App Guy

Reputation: 16275

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

Upvotes: 1

Related Questions