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

New Relationship #231

Open
milafrerichs opened this issue Mar 19, 2021 · 0 comments
Open

New Relationship #231

milafrerichs opened this issue Mar 19, 2021 · 0 comments

Comments

@milafrerichs
Copy link
Contributor

We need to introduce a new Many2Many relationship.

Between Location and GeographyBoundary
The geo query for getting locations inside a boundary is too slow for our production use case.
Therefore we need to model that geographic relationship ourselves. Which is not that big off a deal.

Locations have many GeographyBoundaries (they can be in different sub level boundaries, e.g. state and district, etc)
And Boundaries have many Locations.

This will make the queries a lot faster.

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

Successfully merging a pull request may close this issue.

1 participant