Skip to content

Commit

Permalink
Better partial index #104 (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfischoff authored Jul 6, 2020
1 parent 89ef3b7 commit 49f4cba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Changelog for hasql-queue
- 1.2.0.2
- Better partial index #104

- 1.2.0.1
- Update README.md

Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: hasql-queue
version: '1.2.0.1'
version: '1.2.0.2'
synopsis: A PostgreSQL backed queue
description: A PostgreSQL backed queue. Please see README.md
category: Web
Expand Down
2 changes: 1 addition & 1 deletion src/Hasql/Queue/Migrate.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ migrationQueryString valueType = [i|
, value ${valueType} NOT NULL
);

CREATE INDEX IF NOT EXISTS active_modified_at_idx ON payloads USING btree (modified_at, state)
CREATE INDEX IF NOT EXISTS active_modified_at_idx ON payloads USING btree (modified_at)
WHERE (state = 'enqueued');

|]
Expand Down

0 comments on commit 49f4cba

Please sign in to comment.