From 02a6ccd48124060e683dfad0ab2c77064b74fc58 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 6 Feb 2023 10:39:47 -0800 Subject: [PATCH] Add indexes to export logs. --- .../1675708520823_create_index_exportlog_billid/down.sql | 1 + .../1675708520823_create_index_exportlog_billid/up.sql | 2 ++ .../1675708547556_create_index_exportlog_jobid/down.sql | 1 + .../1675708547556_create_index_exportlog_jobid/up.sql | 2 ++ .../1675708579618_create_index_exportlog_payments/down.sql | 1 + .../1675708579618_create_index_exportlog_payments/up.sql | 2 ++ 6 files changed, 9 insertions(+) create mode 100644 hasura/migrations/1675708520823_create_index_exportlog_billid/down.sql create mode 100644 hasura/migrations/1675708520823_create_index_exportlog_billid/up.sql create mode 100644 hasura/migrations/1675708547556_create_index_exportlog_jobid/down.sql create mode 100644 hasura/migrations/1675708547556_create_index_exportlog_jobid/up.sql create mode 100644 hasura/migrations/1675708579618_create_index_exportlog_payments/down.sql create mode 100644 hasura/migrations/1675708579618_create_index_exportlog_payments/up.sql diff --git a/hasura/migrations/1675708520823_create_index_exportlog_billid/down.sql b/hasura/migrations/1675708520823_create_index_exportlog_billid/down.sql new file mode 100644 index 000000000..95fda734b --- /dev/null +++ b/hasura/migrations/1675708520823_create_index_exportlog_billid/down.sql @@ -0,0 +1 @@ +DROP INDEX IF EXISTS "public"."exportlog_billid"; diff --git a/hasura/migrations/1675708520823_create_index_exportlog_billid/up.sql b/hasura/migrations/1675708520823_create_index_exportlog_billid/up.sql new file mode 100644 index 000000000..688820e5c --- /dev/null +++ b/hasura/migrations/1675708520823_create_index_exportlog_billid/up.sql @@ -0,0 +1,2 @@ +CREATE INDEX "exportlog_billid" on + "public"."exportlog" using btree ("billid"); diff --git a/hasura/migrations/1675708547556_create_index_exportlog_jobid/down.sql b/hasura/migrations/1675708547556_create_index_exportlog_jobid/down.sql new file mode 100644 index 000000000..897febadc --- /dev/null +++ b/hasura/migrations/1675708547556_create_index_exportlog_jobid/down.sql @@ -0,0 +1 @@ +DROP INDEX IF EXISTS "public"."exportlog_jobid"; diff --git a/hasura/migrations/1675708547556_create_index_exportlog_jobid/up.sql b/hasura/migrations/1675708547556_create_index_exportlog_jobid/up.sql new file mode 100644 index 000000000..3eb318294 --- /dev/null +++ b/hasura/migrations/1675708547556_create_index_exportlog_jobid/up.sql @@ -0,0 +1,2 @@ +CREATE INDEX "exportlog_jobid" on + "public"."exportlog" using btree ("jobid"); diff --git a/hasura/migrations/1675708579618_create_index_exportlog_payments/down.sql b/hasura/migrations/1675708579618_create_index_exportlog_payments/down.sql new file mode 100644 index 000000000..8417b5a29 --- /dev/null +++ b/hasura/migrations/1675708579618_create_index_exportlog_payments/down.sql @@ -0,0 +1 @@ +DROP INDEX IF EXISTS "public"."exportlog_payments"; diff --git a/hasura/migrations/1675708579618_create_index_exportlog_payments/up.sql b/hasura/migrations/1675708579618_create_index_exportlog_payments/up.sql new file mode 100644 index 000000000..1a41704ec --- /dev/null +++ b/hasura/migrations/1675708579618_create_index_exportlog_payments/up.sql @@ -0,0 +1,2 @@ +CREATE INDEX "exportlog_payments" on + "public"."exportlog" using btree ("paymentid");