From 6e5af3578410f72ed6867c471d4cba8a47b3f997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20=C3=96stberg?= Date: Mon, 25 Mar 2019 10:55:05 +0100 Subject: [PATCH] three more indexes to improve query speeds --- sql/data_schema.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/data_schema.sql b/sql/data_schema.sql index 7c518df12..9e3a526b7 100644 --- a/sql/data_schema.sql +++ b/sql/data_schema.sql @@ -212,6 +212,9 @@ CREATE OR REPLACE VIEW data.dataset_version_current AS CREATE INDEX coverage_pos_chrom ON data.coverage (chrom, pos); CREATE INDEX features_gene ON data.features (gene); CREATE INDEX features_transcript ON data.features (transcript); +CREATE INDEX features_transcript_type ON data.features (transcript, feature_type); +CREATE INDEX gene_other_names_name ON data.gene_other_names (name); +CREATE INDEX gene_other_names_gene ON data.gene_other_names (gene); CREATE INDEX genes_gene_id ON data.genes (gene_id); CREATE INDEX transcripts_transcript_id ON data.transcripts (transcript_id); CREATE INDEX variants_chrom_pos ON data.variants (chrom, pos);