Commit 334bf85b authored by Keith Jolley's avatar Keith Jolley

Don't create GIN indexes on profiles. These aren't used.

parent ed8b8bb1
......@@ -997,7 +997,6 @@ sub create_temp_scheme_table {
$self->{'db'}->do("CREATE INDEX i_${table}_$field ON $table (UPPER($field))");
}
}
$self->{'db'}->do("CREATE INDEX ON $table using GIN(profile)");
#Index up to 3 elements
my $index_count = keys %$locus_indices >= 3 ? 3 : keys %$locus_indices;
......
......@@ -1054,7 +1054,6 @@ CREATE OR REPLACE FUNCTION create_scheme_warehouse(i_id int) RETURNS VOID AS $$
END IF;
END LOOP;
EXECUTE FORMAT('CREATE UNIQUE INDEX ON %I(md5(profile))',scheme_table);
EXECUTE FORMAT('CREATE INDEX ON %I USING gin(profile)',scheme_table);
EXECUTE FORMAT('CREATE INDEX ON %I ((profile[1]))',scheme_table);
--We need to be able to drop and recreate as apache user.
EXECUTE FORMAT('ALTER TABLE %I OWNER TO apache', scheme_table);
......
......@@ -74,7 +74,6 @@ CREATE OR REPLACE FUNCTION create_scheme_warehouse(i_id int) RETURNS VOID AS $$
END IF;
END LOOP;
EXECUTE FORMAT('CREATE UNIQUE INDEX ON %I(md5(profile))',scheme_table);
EXECUTE FORMAT('CREATE INDEX ON %I USING gin(profile)',scheme_table);
EXECUTE FORMAT('CREATE INDEX ON %I ((profile[1]))',scheme_table);
--We need to be able to drop and recreate as apache user.
EXECUTE FORMAT('ALTER TABLE %I OWNER TO apache', scheme_table);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment