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

Number of active entities query timeout #1501

Open
pedrotambo opened this issue Apr 14, 2023 · 0 comments
Open

Number of active entities query timeout #1501

pedrotambo opened this issue Apr 14, 2023 · 0 comments

Comments

@pedrotambo
Copy link
Contributor

Number of active entities query timeouts in peer-eu1 when checking if needed to create a yearly snapshot. The query is scanning through all the deployments table to get the number of active entities (deleter_deployment = null) in the given year time range. The query takes ~3 minutes.
Analyze possible solutions:

  • Add index for entity_timestamp field in deployments.
  • Add entity_timestamp in active_pointers table and add index for it.
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

1 participant