From 6173e8e7745ceafb2df7d3d894d5df24fe6476a7 Mon Sep 17 00:00:00 2001 From: dtookey Date: Fri, 8 Apr 2022 12:06:27 -0400 Subject: [PATCH] added index to billing for reference numbers to hopefully speed up query times. --- src/sql/0-run-first/1-sanitize.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sql/0-run-first/1-sanitize.sql b/src/sql/0-run-first/1-sanitize.sql index ea12ea5..5e3cef6 100644 --- a/src/sql/0-run-first/1-sanitize.sql +++ b/src/sql/0-run-first/1-sanitize.sql @@ -1,4 +1,7 @@ DROP TABLE IF EXISTS tokens; +DROP INDEX IF EXISTS billing_refnum ON billing; + +CREATE INDEX billing_refnum ON billing (refNumber); -- noinspection SqlWithoutWhere UPDATE users SET hash = '';