on 08-30-2011 7:57 AM
Hi friends,
I am working on a native application on Objective C which needs few optimization.
When he application is suspended and reloaded again it connects to SUP by repeating following steps
1. creating synchronization profile
2. create database and back ground synchronization
3. start client
4. login and subscribe
but since it's already subscribed to server package, I believe few steps can be optimized. I tried running beginSynchronize method after checking subscription but it gave me a persistence exception. Please help me optimizing it.
thanks..
Hi Victor,
Why don't you store your data temporarily in User Defaults temporarily and commit the data when the app is reloaded?
Best Regards,
Sujith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Rakesh ra,
Re-install SUP with latest version. Not it works. Give it a try and then let me know.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think your biggest problem is that you recreate the database, which means you start an initial sync every time. There is no need to do that.
Regards
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for reply Peter. I am not creating database repeatedly. On debugging I found out that setting personalization keys is most costly operation (load parameter is mapped to pers. key) but strangely back end function modules are called multiple times which is difficult to understand.
Regards,
victor
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.