Unanswered: ST2.1 - Store Load() then Sync() deletes records
Unanswered: ST2.1 - Store Load() then Sync() deletes records
I am upgrading my app to ST2.1 from 2.0.1.1 and I am having trouble with strange behaviour when loading a server store. I have run the same app against the two SDK versions to highlight the difference.
Information on the store.
1. It has a server Rest proxy
2. In the experiment it has 9 records which gets loaded when reader is called
3. Two local records are added at startup.
Behaviour with ST 2.0.1.1:
After first load data on the store is as follows: couchCourseStore has 11 records: 0 new; 0 removed; 9 updated;
After the second and subsequent loads the store info as follows: couchCourseStore has 11 records: 0 new; 0 removed; 9 updated;
Behaviour with ST 2.1b3:
After first load data on the store is as follows (same as with ST2.0.1.1): couchCourseStore has 11 records: 0 new; 0 removed; 9 updated;
After the second load, however, the information changes to the following couchCourseStore has 11 records: 0 new; 11 removed; 9 updated;
Here it now shows 11 removed records. When I now want to sync this store, it deletes all my records! I have combed the forum and found an issue here which sounds very similar. Could it be that this problem is re-surfacing in the new version?
OK, will do so. There just has been no activity on that tread for about 4 months, so I assumed (hoped really) that it has been fixed and just got lost. Checking it now I see it was never closed:fixed.