Skip to content

Commit

Permalink
Added an index on jobs (created_at)
Browse files Browse the repository at this point in the history
  • Loading branch information
runabol committed Jun 12, 2024
1 parent 322062f commit 59e03c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/postgres/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ CREATE TABLE jobs (
CREATE INDEX idx_jobs_state ON jobs (state);
CREATE INDEX idx_jobs_created_at ON jobs (created_at);
ALTER TABLE jobs ADD COLUMN ts tsvector NOT NULL
GENERATED ALWAYS AS (
setweight(to_tsvector('english',description),'C') ||
Expand Down

0 comments on commit 59e03c6

Please sign in to comment.