[AMQ-7008] Add index on messages table to speed up browsing

This commit is contained in:
Jean-Baptiste Onofré 2019-11-19 05:45:30 +01:00
parent 31f2943898
commit 3c10f6ef86
1 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,8 @@ public class Statements {
"ALTER TABLE " + getFullAckTableName() + " " + getDropAckPKAlterStatementEnd(),
"ALTER TABLE " + getFullAckTableName() + " ADD PRIMARY KEY (CONTAINER, CLIENT_ID, SUB_NAME, PRIORITY)",
"CREATE INDEX " + getFullMessageTableName() + "_XIDX ON " + getFullMessageTableName() + " (XID)",
"CREATE INDEX " + getFullAckTableName() + "_XIDX ON " + getFullAckTableName() + " (XID)"
"CREATE INDEX " + getFullAckTableName() + "_XIDX ON " + getFullAckTableName() + " (XID)",
"CREATE INDEX " + getFullMessageTableName() + "_IIDX ON " + getFullMessageTableName() + " (ID ASC, XID, CONTAINER)"
};
}
getCreateLockSchemaStatements();