From 2d6a190cffbf74a40e020e27d2a64e134dcf530a Mon Sep 17 00:00:00 2001 From: dtookey Date: Fri, 8 Apr 2022 11:46:34 -0400 Subject: [PATCH] trying to add an index to billing_report to see if that alleviates any long-query issues. --- src/sql/0-run-first/billing.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sql/0-run-first/billing.sql b/src/sql/0-run-first/billing.sql index 96b6d0f..994d762 100644 --- a/src/sql/0-run-first/billing.sql +++ b/src/sql/0-run-first/billing.sql @@ -10,6 +10,7 @@ SELECT pkey, invoice_accepted FROM billing; CREATE INDEX ref_num ON billing_report (refNumber); +CREATE INDEX div_idx ON billing_report (division); UPDATE billing_report SET division = IF(