ios - Load Large Data from multiple tables in parallel using multithreading -


i'm trying load data 10k records 6 different tables ultrlite db.

i have created different functions 6 different tables.

i have tried load these in parallel using nsinvokeoperations, nsoperations, gcd, subclassing nsoperation nothing working out.

actually, loading 10k 1 table takes 4 sec, , 5 sec, if keep these 2 in queue taking 9 secs. means code not running in parallel.

how improve performance problem? please me in this.

thanks in advance.

there may multiple ways of doing it.

what suggest :

  • set number of rows table view exact count (10k in case)
  • table view optimised create few number of cells @ start(follows pull model). cellforrowatindexpath called few times @ start.
  • have array , fetch 50 entries @ start. have counter variable.
  • when user scrolls table view , count reaches after 50 fetch next 50 items(it take less time) , populate cells next 50 data. keep on doing same thing.

hope works.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -