Skip to content
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

Why this database structure? #4

Open
KristijanZic opened this issue Jun 22, 2024 · 1 comment
Open

Why this database structure? #4

KristijanZic opened this issue Jun 22, 2024 · 1 comment

Comments

@KristijanZic
Copy link

Why do we need to have this specific database structure if we can have a single geohash with maximum precision? Can't you query the firebase via substring to get the other zoom levels?

@meanllbrl
Copy link
Owner

Since we are not searching for just one geohash, we need to use arrayContainsAny to check a pool of related geohashes at specific precisions. If we did it the way you suggested, it would create unnecessary GET requests and slow down the process. However, these are just my guesses; I will investigate more carefully to see if it would work. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants