I'm using sencha touch 2 for my mobile app. I'm loading json data from a web-server to a sencha touch local store (localStorage). There are more than 5000 data and it takes 15+ minutes to load data to local store. Initially I'm getting all data into a data store using proxy and then I'm copying all data to a local store so that data will be available offline. I have tested, json response comes inside half minutes, but all the remaining time takes when I use sync() function to copy (add) data to local store. Also when sync process is in progress, whole app stuck at that point. Following are the code lines,
memberStore.each(function(item){
memberLocalStore.add(item);
});
memberLocalStore.sync();
Can anyone please tell me the reason for this, why sync function taking too much time to save data to localStorage? And is there any solution to reduce this time?
Directly save data in your local database spare table than load all data in store it will increase your app performance.
for more detail click below link sencha touch Sync store Performance issue