Skip to content

Commit

Permalink
CREATE pg_trgm
Browse files Browse the repository at this point in the history
  • Loading branch information
antgonza committed Oct 18, 2024
1 parent 33e3320 commit 9120691
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiita_db/support_files/patches/93.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ ALTER TABLE qiita.processing_job
ALTER COLUMN command_parameters TYPE JSONB USING command_parameters::jsonb;

-- This indexing will take like 5 min
CREATE INDEX processing_job_command_parameters_job_id ON qiita.processing_job
CREATE INDEX IF NOT EXISTS processing_job_command_parameters_job_id ON qiita.processing_job
USING GIN((command_parameters->>'job_id') gin_trgm_ops);

-- This indexing will take like an hour
CREATE INDEX processing_job_command_parameters_payload ON qiita.processing_job
CREATE INDEX IF NOT EXISTS processing_job_command_parameters_payload ON qiita.processing_job
USING GIN((command_parameters->>'payload') gin_trgm_ops);

-- After the changes
Expand Down
5 changes: 5 additions & 0 deletions qiita_db/support_files/patches/test_db_sql/92.sql
Original file line number Diff line number Diff line change
Expand Up @@ -952,3 +952,8 @@ INSERT INTO qiita.human_reads_filter_method (
UPDATE qiita.artifact
SET human_reads_filter_method_id = 1
WHERE artifact_id = 1;

-- Oct 18, 2024
-- This is going to be used in 93.sql but adding it here so it happens before that
-- patch in the test database
CREATE EXTENSION pg_trgm;

0 comments on commit 9120691

Please sign in to comment.