Skip to content

feat: add index to workspace_agent_stats #10009

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

Merged
merged 3 commits into from
Oct 3, 2023
Merged

feat: add index to workspace_agent_stats #10009

merged 3 commits into from
Oct 3, 2023

Conversation

mtojek
Copy link
Member

@mtojek mtojek commented Oct 3, 2023

Related: #9495

This PR enables an index on the workspace_agent_stats table to speed up the execution of the GetTemplateInsightsByInterval query.

Credits to @mafredri for the solution!

@mtojek mtojek self-assigned this Oct 3, 2023
@mtojek mtojek changed the title feat: create index on workspace_agent_stats feat: add index to workspace_agent_stats Oct 3, 2023
@mtojek mtojek marked this pull request as ready for review October 3, 2023 10:53
@mtojek mtojek requested a review from mafredri October 3, 2023 10:53
@mtojek mtojek enabled auto-merge (squash) October 3, 2023 11:11
@mtojek mtojek merged commit cb60409 into main Oct 3, 2023
@mtojek mtojek deleted the fix-database-index branch October 3, 2023 11:13
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants