-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Improve map performance over long date ranges (month+) #1301
Comments
@EchoProject what do you think about the first checkbox in the comment above? How important is it to render all the requests for a particular date range in the map? |
Another idea is to retrieve a limited number of requests on a city-level, but get all NC-level requests when a user selects an NC. |
Here's some reading material as promised from today's meeting. To improve map performance, in theory, we could combine webworkers with mapbox's real-time data-join capability. We could try some branches in dev, collaborate and see if it is a solution that ultimately suits our needs. It's pretty neat to learn about nonetheless |
Edwin correct me if I'm wrong Progress: Hasn't been worked on yet, because first wanted to fix the #1408 issue first. Personally my option the code should be refactored to composition rather than inheritance to be able to handle this easier. Not sure where this stands in priority, but probably would take longer than #1408 issue Blockers: Availability, not knowing the priority on this, and discussions on frontend infrastructure change for the Map.jsx and any other file to handle the requests. Availability: a couple hours a week (~6 hours), evenings and weekends ETA: Not sure |
Had a meeting with Eric on 12/30/2022. Here are some of my notes: Problem
Potential Solution One (quickest):
Potential Solution Two (longer):
Updates
Questions:
|
Overview
Currently, the frontend will get up to 10k 311 requests/day for each day in the selected date range. If we select the past month, our server does not even work reliably--our frontend makes ~30 requests in parallel, one for each day, and 5-6 requests fail on the server side.
This is to say nothing of a browser's ability to render 100k+ requests in the first place. We'll need to measure that once we get the map to work reliably over a month's worth of request data.
Action Items
cached
decorator on get_filtered_requestsResources
The text was updated successfully, but these errors were encountered: