Parse-SDK-Android icon indicating copy to clipboard operation
Parse-SDK-Android copied to clipboard

why find() by network can get the local data?

Open a-jiang opened this issue 7 years ago • 0 comments

I get data through the network and save it to the local data store by pin。 follow ParseObject.pinAllInBackground(LOCAL_SUBJECT_SET, objects);

then,I update one object of objects,from LocaDataStore by query.fromPin(LOCAL_QUESTIONDB_SET); and object.pinInBackground(LOCAL_QUESTIONDB_SET); follow:

ParseQuery<ParseObject> query = ParseQuery.getQuery(NETWORK_QUESTIONDB_TABLE); query.fromPin(LOCAL_QUESTIONDB_SET); query.getInBackground(qdbId, new GetCallback<ParseObject>() { @Override public void done(ParseObject object, ParseException e) { object.increment("done"); object.put("currIndex",index); object.pinInBackground(LOCAL_QUESTIONDB_SET); } }); and then,I get data by network twice using query.find()。I got data by network the second time is the localdata what I have changed just.

a-jiang avatar Aug 24 '18 01:08 a-jiang