why find() by network can get the local data?
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.