on 01-17-2013 11:22 AM
Hi All
I am new to the SUP world. Have created an Android native app using the generated code for the deployed MBO. For this MBO i am using the cache policy as scheduled(for 10mins) .I am using MBS based synchronization in my code. At the start In my SAP backend has 4 records ,now when one more record is added to the backend, the updated record is not reflected in my app even after the specified cache interval. I can see the updated record only if i call synchronize() in my code .
My query is do I have to call synchronize() everytime I need to get the updated record from backend?
Second " I have noticed if I call synchronize() just after the backend(SAP DB) is updated , i get the updated record without the delay of specified cache interval which means the app is hitting backend DB directly(At this point the CDB is not updated because of schedule cache policy)" .
Is it normal or i have made some mistakes while configuring the MBO because then there is no use of cache.Because as per my understanding device should talk with CDB only".
.
Thanks & Regards
Mohammed Rehan Rizvi
Hi Mohammed,
When you use schedule cache policy with time interval,It refreshes CDB after specified cache interval.
So Cache DB will have new data and it has to work in this way.
Even I am also using scheduled cache policy in my project and it's refreshing the cache DB after specified cache interval.
Second thing what synchronize() does, It takes data from cache DB and updates the device database. So u have to call synchronize() API to get new data from CDB to device database. Sync happens between CDB and Device DB.
Third one want to know some details, do u have any load parameters in MBO?
Regards,
Abhishek Wajge
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.