diff --git a/sql/data_schema.sql b/sql/data_schema.sql index 7c518df12..b94ebed35 100644 --- a/sql/data_schema.sql +++ b/sql/data_schema.sql @@ -212,9 +212,13 @@ 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); +CREATE INDEX variants_chrom_pos_ref_alt ON data.variants (chrom, pos, ref, alt); CREATE INDEX variants_rsid ON data.variants (rsid); CREATE INDEX variant_genes_gene ON data.variant_genes (gene); CREATE INDEX variant_genes_variant ON data.variant_genes (variant);