From 1e96eb345456f9b762b1ffc5a20b25beee0dafae Mon Sep 17 00:00:00 2001 From: kj16609 Date: Tue, 4 Nov 2025 07:24:16 -0500 Subject: [PATCH] Adds GIN index to tags table and deletes old total_tag_counts table --- IDHANMigration/src/110-total_tag_counts.sql | 1 + IDHANMigration/src/115-tags.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 IDHANMigration/src/110-total_tag_counts.sql create mode 100644 IDHANMigration/src/115-tags.sql diff --git a/IDHANMigration/src/110-total_tag_counts.sql b/IDHANMigration/src/110-total_tag_counts.sql new file mode 100644 index 0000000..a45b4be --- /dev/null +++ b/IDHANMigration/src/110-total_tag_counts.sql @@ -0,0 +1 @@ +DROP TABLE total_tag_counts; \ No newline at end of file diff --git a/IDHANMigration/src/115-tags.sql b/IDHANMigration/src/115-tags.sql new file mode 100644 index 0000000..40112a6 --- /dev/null +++ b/IDHANMigration/src/115-tags.sql @@ -0,0 +1 @@ +CREATE INDEX ON tags USING gin (tag_text gin_trgm_ops); \ No newline at end of file