-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MMI-244 Create index on content table (#2376)
* MMI-244 Create index on content table - created index on status field and published on field - added index to content configuration
- Loading branch information
Showing
5 changed files
with
7,532 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
7 changes: 7 additions & 0 deletions
7
libs/net/dal/Migrations/1.3.15/Down/PostDown/00-CbraDropIndex.sql
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,7 @@ | ||
DO $$ | ||
BEGIN | ||
|
||
DROP INDEX IF EXISTS public."IX_content_published_on"; | ||
DROP INDEX IF EXISTS public."IX_content_status"; | ||
|
||
END $$; |
11 changes: 11 additions & 0 deletions
11
libs/net/dal/Migrations/1.3.15/Up/PostUp/00-CbraCreateIndex.sql
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,11 @@ | ||
DO $$ | ||
BEGIN | ||
|
||
CREATE INDEX IF NOT EXISTS "IX_content_published_on" | ||
ON public.content USING btree | ||
(published_on DESC); | ||
CREATE INDEX IF NOT EXISTS "IX_content_status" | ||
ON public.content USING btree | ||
(status ASC); | ||
|
||
END $$; |
Oops, something went wrong.