-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding partial index for uncommitted entries (#816)
- Loading branch information
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
BEGIN; | ||
DROP INDEX IF EXISTS entries_uncommitted_branch_min_commit; | ||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
-- partial index on min_commit to locate uncommitted entries | ||
BEGIN; | ||
DROP INDEX IF EXISTS entries_uncommitted_branch_min_commit; | ||
CREATE INDEX entries_uncommitted_branch_min_commit | ||
ON catalog_entries USING btree | ||
(branch_id ASC NULLS LAST, min_commit ASC NULLS LAST) | ||
WHERE min_commit = '1000000000000000000'::bigint; | ||
COMMIT; |