Question Details

No question body available.

Tags

flutter firebase dart google-cloud-firestore

Answers (1)

Accepted Answer Available
Accepted Answer
February 24, 2026 Score: 4 Rep: 603,849 Quality: Expert Completeness: 70%

Based on the troubleshooting we did in the comments, deleting the local cache fixed the problem. So it sounds like:

  • your queries were running locally
  • you had a significant amount of data in the local cache
  • you likely don't have local indexes defined to support those queries

In this case the SDK has to do a scan of the local data, which is gonna be some big O (specifics depend on the platform) and can take significant time.

The first steps I'd take is:

  • Ensure that you have configured the necessary indexes for your offline queries. This might solve the problem right away.

  • Consider having only data in the local cache that the user is likely to see. If some data is not likely to ever be displayed, as a user I'd prefer to not download that data to my device.