Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Improve indices
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLoneRonin committed Apr 8, 2021
1 parent 5b0369a commit e065d20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/index.create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ CREATE INDEX "index_domain_transactions" ON transactions USING BTREE ("domain");
CREATE INDEX "index_app_transactions" ON transactions USING BTREE ("app");
CREATE INDEX "index_App-Name_transactions" ON transactions USING BTREE ("App-Name");
CREATE INDEX "tags_name" ON tags USING BTREE ("name");
CREATE INDEX "tags_value" ON tags USING BTREE ("value");
CREATE INDEX "tags_name_value" ON tags USING BTREE ("name", "value");
CREATE INDEX "tags_tx_id_name" ON tags USING BTREE ("tx_id", "name");
CREATE INDEX "tags_name" ON tags USING BTREE ("name") WHERE LENGTH("name") < 64;
CREATE INDEX "tags_value" ON tags USING BTREE ("value") WHERE LENGTH("value") < 64;
CREATE INDEX "tags_name_value" ON tags USING BTREE ("name", "value") WHERE LENGTH("name") < 64 AND LENGTH("value") < 64;
CREATE INDEX "tags_tx_id_name" ON tags USING BTREE ("tx_id", "name") WHERE LENGTH("name") < 64;
EOF

Expand Down

0 comments on commit e065d20

Please sign in to comment.