Handling XML loaded from a webservice on iphone app startup -


we creating application interfaces our current system uses web service retrieve current xml file user.

the xml file needs updated each time application starts up, unless no internet connection available, in case application needs use base xml file within app bundle populate fields.

the application taking long time retrieve , process xml document, or decide use base xml. project work, not allowed post code viewing.

the xml document written sqlite db utilized application. entire process must completed prior user being able in application.

the question is, there way speed process current format... current format web service outputs xml requested files sqlserver db. better build new web service outputs other type of file quicker use within app?

so app slow due large amount of data storage. working on similar project in have similar kind of things. found due large amount of data retrieved server must not done in main thread. taking time. solution retrieve on queue/thread. can dispatch of backend data queue. while after of data saved can start showing user in main queue. meanwhile, different queue used save of data database. saving , viewing parts of data. can read on gcd/threads on developers site/other tutorials implementation.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -