GH-3512: NULLS LAST for PostgreSQL priority index
Fixes https://github.com/spring-projects/spring-integration/issues/3512 See https://use-the-index-luke.com/sql/sorting-grouping/order-by-asc-desc-nulls-last for more info
This commit is contained in:
@@ -49,7 +49,7 @@ CREATE TABLE INT_CHANNEL_MESSAGE (
|
||||
|
||||
CREATE INDEX INT_CHANNEL_MSG_DELETE_IDX ON INT_CHANNEL_MESSAGE (REGION, GROUP_KEY, MESSAGE_ID);
|
||||
-- This is only needed if the message group store property 'priorityEnabled' is true
|
||||
-- CREATE UNIQUE INDEX INT_CHANNEL_MSG_PRIORITY_IDX ON INT_CHANNEL_MESSAGE (REGION, GROUP_KEY, MESSAGE_PRIORITY DESC, CREATED_DATE, MESSAGE_SEQUENCE);
|
||||
-- CREATE UNIQUE INDEX INT_CHANNEL_MSG_PRIORITY_IDX ON INT_CHANNEL_MESSAGE (REGION, GROUP_KEY, MESSAGE_PRIORITY DESC NULLS LAST, CREATED_DATE, MESSAGE_SEQUENCE);
|
||||
|
||||
|
||||
CREATE TABLE INT_METADATA_STORE (
|
||||
|
||||
Reference in New Issue
Block a user