Commit 90886ea1 authored by Keith Jolley's avatar Keith Jolley

Index sequence(exemplar) only where exemplar=true.

parent 334bf85b
......@@ -301,7 +301,7 @@ ON UPDATE CASCADE
);
CREATE UNIQUE INDEX i_s1 ON sequences(locus,md5(sequence));
CREATE INDEX i_s2 ON sequences(exemplar);
CREATE INDEX i_s2 ON sequences(exemplar) WHERE exemplar;
GRANT SELECT,UPDATE,INSERT,DELETE ON sequences TO apache;
CREATE TABLE sequence_extended_attributes (
......
CREATE INDEX i_s2 ON sequences(exemplar);
CREATE INDEX i_s2 ON sequences(exemplar) WHERE exemplar;
--Change owner of profile_members to apache (needed so that triggers can be disabled for batch upload).
ALTER TABLE profile_members OWNER TO apache;
......
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