Skip to content

Commit

Permalink
Issue #91: Added DB index for top searches query.
Browse files Browse the repository at this point in the history
  • Loading branch information
haumacher committed Nov 30, 2024
1 parent 8edadee commit 0460f9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ CREATE TABLE NUMBERS (
);

CREATE INDEX NUMBERS_ACTIVE_IDX ON NUMBERS (ACTIVE DESC,VOTES DESC);
CREATE INDEX NUMBERS_UPDATED_IDX ON PUBLIC.NUMBERS (UPDATED DESC);

-- Clear new NUMBERS table after failed attempt
-----------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ CREATE TABLE NUMBERS (
);

CREATE INDEX NUMBERS_ACTIVE_IDX ON NUMBERS (ACTIVE DESC,VOTES DESC);
CREATE INDEX NUMBERS_UPDATED_IDX ON PUBLIC.NUMBERS (UPDATED DESC);

CREATE TABLE REVISION (
ID INTEGER NOT NULL AUTO_INCREMENT,
Expand Down

0 comments on commit 0460f9e

Please sign in to comment.