简体   繁体   中英

Is query.fromLocalDatastore() exclusive?

When you add .fromLocalDatastore to a PFQuery , does it query exclusively the local datastore, or does it query the cloud as well?

From Parse:

Often, you'll want to find a whole list of objects that match certain criteria, instead of getting a single object by id. To do that, you can use a PFQuery. Any PFQuery can be used with the local datastore just as with the network. The results will include any object you have pinned that matches the query .

A PFQuery query using .fromLocalDatastore() does not hit the cloud.

The reason is that is its behavior by definition but I also verified this to be true through network monitoring of a query both with and without the use of .fromLocalDatastore().

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM