Skip to content

Commit

Permalink
perf: fix feature querying performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Dec 12, 2024
1 parent e8d1a91 commit 63ec9e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bento_reference_service/sql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ CREATE TABLE IF NOT EXISTS genome_feature_attributes (
attr_val INTEGER NOT NULL REFERENCES genome_feature_attribute_values
);
CREATE INDEX IF NOT EXISTS genome_feature_attributes_feature_idx ON genome_feature_attributes (feature);
CREATE INDEX IF NOT EXISTS genome_feature_attributes_attr_key_only_idx ON genome_feature_attributes (attr_key);
CREATE INDEX IF NOT EXISTS genome_feature_attributes_attr_key_idx
ON genome_feature_attributes (feature, attr_key);
CREATE INDEX IF NOT EXISTS genome_feature_attributes_attr_val_only_idx ON genome_feature_attributes (attr_val);
CREATE INDEX IF NOT EXISTS genome_feature_attributes_attr_val_idx
ON genome_feature_attributes (feature, attr_val);

Expand Down

0 comments on commit 63ec9e1

Please sign in to comment.