Reputation: 82
I'm trying load data about 10K records from 6 different tables from my Ultralite DB.
I have created different functions for 6 different tables.
I have tried to load these in parallel using NSInvokeOperations, NSOperations, GCD, Subclassing NSOperation but nothing is working out.
Actually, loading 10K from 1 table takes 4 Sec, and from another 5 Sec, if i keep these 2 in queue it is taking 9 secs. This means my code is not running in parallel.
How to improve performance problem?
Upvotes: 0
Views: 317
Reputation: 348
You should fetch records in chunks(i.e. fetch 50-60 records at a time in a table). And then when user reach end of the table load another 50 -60 records. Try hands with this library: Bottom Pull to refresh more data in a UITableView
Regarding parallelism go with GCD, and reload respective table when GCD's success block called.
Upvotes: 0
Reputation: 11
Ok you have to use Para and Time functions look them up online for more info
Upvotes: -2
Reputation: 1043
There may be multiple ways of doing it.
What i suggest will be :
Hope it works.
Upvotes: 3