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

Optimise store indexing #712

Open
Mirko-von-Leipzig opened this issue Feb 20, 2025 · 1 comment
Open

Optimise store indexing #712

Mirko-von-Leipzig opened this issue Feb 20, 2025 · 1 comment
Assignees
Labels
store Related to the store component test Test related issue
Milestone

Comments

@Mirko-von-Leipzig
Copy link
Contributor

Our sql queries are (likely) missing a bunch of indices.

The main way this will show up is (eventually) with slow queries once the db is populated. While #609 may help identify these bottlenecks, one can already identify most candidates using explain query plan.

Queries should in general be using indices (search) and avoiding full row scans. Missing indices can therefore be identified, added and rechecked to ensure they're being used.

A more robust solution would involve running this in tests somehow, and ensuring there are no scan involved. There may of course be exceptions, but these can be whitelisted.

@Mirko-von-Leipzig Mirko-von-Leipzig added store Related to the store component test Test related issue labels Feb 20, 2025
@bobbinth
Copy link
Contributor

Related: #57.

@bobbinth bobbinth added this to the v0.8 milestone Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
store Related to the store component test Test related issue
Projects
None yet
Development

No branches or pull requests

3 participants