-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Huge amount of reads for within
. Is this normal?
#73
Comments
Did you find any fix to this ?. I also tested the code and when I receive 4 points on my map I have 800 reads in firebase. |
Additional reads beyond the radius result is expected, but a bug was fixed in 0.1.0 where Limit does not work as you might expect. A regular firestore query is made for 9 different square hashes, so your worst case limit would actually be applied as 9 x 3. I don't recommend using limit, but rather a smaller query radius or Also, you can now enable logging to track the total documents returned in a query |
@mmmoli I am looking to using this library but I am curious to know if this issue is resolved for you as of this moment as per update suggested by @codediodeio ? |
To be honest, I freaked out. Between that and spending $30k in 72 hours I decided it wasn't worth it and moved away. I think that's more of reflection of Fb's pricing model that this library though 🙏 |
@VincentDufour I didn't. I wasn't part of that engineering team. From my link to the blog post describing their disaster:
In summary: think, hard. |
Issue
Worried about ongoing costs 😟
Observation
12k READ queries over a few hours
Expected
Maybe an order of magnitude fewer.
Fixes
Either reset expectation and prepare to pay or fix crazy code?
Context
I've developed a
graphql
API to list 27kProjects
stored in Firestore. I'm usinggeoFirex
to find Projects within a certain radius.As part of development, I ran this function 30 times or so:
Questions
Thanks.
The text was updated successfully, but these errors were encountered: