-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
breaking changeeffort: highmore than a weekmore than a weekhelp wantedIssue with a clear description that the community can help with.Issue with a clear description that the community can help with.status: WIPWork in progress ... inputs welcome! ❤️Work in progress ... inputs welcome! ❤️status: assignedtype: bugAn issue or pull request relating to a bug in this projectAn issue or pull request relating to a bug in this projecttype: maintenanceAn issue or pull request describing a change that isn't a bug, feature or documentation changeAn issue or pull request describing a change that isn't a bug, feature or documentation change💡 Proposed WorkThis is work that _might_ be worth doing, but that hasn't been started yet.This is work that _might_ be worth doing, but that hasn't been started yet.
Description
Currently, when a user searches for route between 2 points
- Backend requests to Google Maps API to get routes to destination from source.
- Select a route and iterate through the points in between
- select the 3000m nearby point from current point
- query 1500m distant node aqi value from the selected point
- return results to the user with all the points and curresposing aqi values.
This model is inefficient considering the number of database queries for a single user request.
Suppose the user's path has 2 routes and one route has 8 points in between with 4 selectable points(with 3000m distance in between) including source and destination.
It takes 4 database queries to find nearest aqi node value.
Also the same for second route.
Refactor this to query the database in a single session and then return the results
Metadata
Metadata
Assignees
Labels
breaking changeeffort: highmore than a weekmore than a weekhelp wantedIssue with a clear description that the community can help with.Issue with a clear description that the community can help with.status: WIPWork in progress ... inputs welcome! ❤️Work in progress ... inputs welcome! ❤️status: assignedtype: bugAn issue or pull request relating to a bug in this projectAn issue or pull request relating to a bug in this projecttype: maintenanceAn issue or pull request describing a change that isn't a bug, feature or documentation changeAn issue or pull request describing a change that isn't a bug, feature or documentation change💡 Proposed WorkThis is work that _might_ be worth doing, but that hasn't been started yet.This is work that _might_ be worth doing, but that hasn't been started yet.