I am running into latency issues when querying parse objects for both network and local datastore calls. The strange part is these differences are not consistent across devices when running the same compiled code on both. To me, this rules out server side or anything with the network.
Here is the behavior I see on my Samsung S7:
When the phone is connected to a network (wifi or cellular) both the network query and the local datastore query can take up to 3-5 seconds to respond. I’m only getting like 30 or so ParseObjects. When I put my phone in airplane mode the query typically takes a second or less. I’m assuming this is because it is forcing it to use the local datastore and not do any network stuff.
Here is the behavoir I see on my Samsung s2 tablet:
No matter if I am connected to wifi or in airplane mode the query is relatively fast. Like 1.5s or less for the same code/query that takes 3-5x as long on my phone.
What is causing the lag on my phone? Its the same code, same wifi network. Why is there a difference with the same code on different devices? Is there anything I can do to address the issue?