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

Optmize NHD High Resolution Querying #3424

Closed
rajadain opened this issue Oct 10, 2021 · 3 comments
Closed

Optmize NHD High Resolution Querying #3424

rajadain opened this issue Oct 10, 2021 · 3 comments
Assignees
Labels
+ PA DEP Funding Source: Pennsylvania Department of Environment Protection

Comments

@rajadain
Copy link
Member

Currently the NHD HR layer uses up a lot of RDS CPU and Read Operations: #3415 (comment)

This can potentially lock up the database for other transactional queries (loading / saving projects, etc), and a single user can bring down the entire system.

This can be especially bad when the users zoom a lot, and can lead to tile requests timing out.


Find a way to optimize the tile requests to make them faster and lighter. Consider:

  • Adding the right index
  • Adjusting which stream orders are shown at which level
  • Batch generating the tile cache
@rajadain rajadain added the PA DEP Funding Source: Pennsylvania Department of Environment Protection label Oct 10, 2021
@rajadain rajadain mentioned this issue Oct 10, 2021
30 tasks
@rajadain
Copy link
Member Author

@rajadain
Copy link
Member Author

The tile cache was batch generated in #3465 (comment)

@rajadain
Copy link
Member Author

This is also a good resource on how to read query plans in general: https://thoughtbot.com/blog/reading-an-explain-analyze-query-plan, such as the one in #3465 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
+ PA DEP Funding Source: Pennsylvania Department of Environment Protection
Projects
None yet
Development

No branches or pull requests

2 participants