Closed jefelewis closed 4 years ago
Interesting... Could you build a quick sample app based on how you are using it? (I'll provide my own firebase app to test it, I just want to dig through everything to understand how your app works and why there are so many reads)
Hey @MichaelSolati, I created this repository to reproduce the problem. https://github.com/jefelewis/geofirestore-test
This may require the expo-cli to be installed as a global package as well as the Expo android/iphone app.
expo start
to being the project.Let me know if you need any more information. Thank you!
it counts a query per document each time you open the console url in your browser, paginated at 600 so if it defaults to a collection with 1k documents, you'll get +600 reads every time you open the database tab in the console
it counts a query per document each time you open the console url in your browser, paginated at 600 so if it defaults to a collection with 1k documents, you'll get +600 reads every time you open the database tab in the console
Hi @pushkine , by console do you mean the Firebase web console?
Web console counts as a read as well (from my experience). Also this Stack Overflow response seems to confirm that.
I recently got everything working with Geofirestore and my Cloud Firestore database, but there seems to be an issue with Geofirestore eating up Cloud Firestore database reads.
I did a location query last night with a radius of 1 and that returned about ~10 documents, but resulted in 1,200 database reads.
This morning I did a query with a radius of 2, which resulted in about ~45 documents, but ate up 600 reads.
Cloud Firestore Format: This is my first time using Geofirestore, but here's what my Cloud Firestore looks like (I used the Geohash as the Ids when I loaded them. Not sure if that was an issue)
Database Reads:
Update: Cloud Firestore now shows 2,400 reads, so 1,200 per query? (Only 2 queries ever made for this database)
My Query Function: