Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(coderd/database): add fk index forworkspace_agent_scripts#12791

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

mafredri
Copy link
Member

I noticed we were missing this index while looking at query
performances, we were doing sequential scans on the table via the
GetWorkspaceAgentScriptsByAgentIDs query, which is relatively fast
whilst the table is small, but at 8.5k calls/hour in our dogfood
instance, it will become problematic eventually.

@mafredriGraphite App
Copy link
MemberAuthor

This stack of pull requests is managed by Graphite.Learn more about stacking.

Join@mafredri and the rest of your teammates onGraphiteGraphite

@mafredrimafredriforce-pushed themafredri/03-28-fix_coderd_database_add_fk_index_for_workspace_agent_scripts_ branch froma64e13f tode32125CompareMarch 28, 2024 11:09
@mafredrimafredri marked this pull request as ready for reviewMarch 28, 2024 11:09
I noticed we were missing this index while looking at queryperformances, we were doing sequential scans on the table via the`GetWorkspaceAgentScriptsByAgentIDs` query, which is relatively fastwhilst the table is small, but at 8.5k calls/hour in our dogfoodinstance, it will become problematic eventually.
@mafredrimafredriforce-pushed themafredri/03-28-fix_coderd_database_add_fk_index_for_workspace_agent_scripts_ branch fromde32125 tof33ca15CompareMarch 28, 2024 12:06
Copy link
Member

@mtojekmtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👍

@mafredrimafredri merged commitd50c20c intomainMar 28, 2024
@mafredrimafredri deleted the mafredri/03-28-fix_coderd_database_add_fk_index_for_workspace_agent_scripts_ branchMarch 28, 2024 12:31
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 28, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mtojekmtojekmtojek approved these changes

@johnstcnjohnstcnAwaiting requested review from johnstcn

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mafredri@mtojek

[8]ページ先頭

©2009-2025 Movatter.jp