From 30c00a91d8de918d752459e31b1317d31c3fa307 Mon Sep 17 00:00:00 2001 From: jjaw Date: Wed, 10 Jun 2026 00:59:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B4=A6=E5=8F=B7=E5=88=86?= =?UTF-8?q?=E7=BB=84=E8=B0=83=E5=BA=A6=E7=B4=A2=E5=BC=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/150_account_group_scheduler_indexes_notx.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 backend/migrations/150_account_group_scheduler_indexes_notx.sql diff --git a/backend/migrations/150_account_group_scheduler_indexes_notx.sql b/backend/migrations/150_account_group_scheduler_indexes_notx.sql new file mode 100644 index 0000000000..9fe2344fca --- /dev/null +++ b/backend/migrations/150_account_group_scheduler_indexes_notx.sql @@ -0,0 +1,5 @@ +CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_account_groups_group_priority_account + ON account_groups (group_id, priority, account_id); + +CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_account_groups_account_priority_group + ON account_groups (account_id, priority, group_id);