geofirex icon indicating copy to clipboard operation
geofirex copied to clipboard

Enhancement Request: optimization for firestore's cost?

Open henrylearn2rock opened this issue 7 years ago • 1 comments

As described at https://youtu.be/lO1S-FAcZU8?t=2m2s, there are inherited edge cases with geohash and they can be solved with doing more queries and filtering. However, since firestore's cost structure is based on number of reads, and more queries yield more latency, it would be great if geofirex can allow the user to pick whether they can live with certain edge cases to save the cost. What do you think?

henrylearn2rock avatar Jul 12 '18 17:07 henrylearn2rock

Great idea. I was thinking about exposing additional methods that would be cost optimized.

nearby() Starts at the most precise geohash, then works up until X results are found. inGeohash() Searches only within specified hash, ignoring neighbors. This would make it easier to customize behavior.

codediodeio avatar Jul 12 '18 17:07 codediodeio