mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add index to workspace_agent_stats (#10009)
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
DROP INDEX workspace_agent_stats_template_id_created_at_user_id_idx;
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
CREATE INDEX workspace_agent_stats_template_id_created_at_user_id_idx ON workspace_agent_stats USING btree (template_id, created_at DESC, user_id) WHERE connection_count > 0;
|
||||
|
||||
COMMENT ON INDEX workspace_agent_stats_template_id_created_at_user_id_idx IS 'Support index for template insights endpoint to build interval reports faster.';
|
||||
Reference in New Issue
Block a user