mirror of https://github.com/apache/activemq.git
[AMQ-7008] Add index on messages table to speed up browsing
This commit is contained in:
parent
31f2943898
commit
3c10f6ef86
|
@ -115,7 +115,8 @@ public class Statements {
|
||||||
"ALTER TABLE " + getFullAckTableName() + " " + getDropAckPKAlterStatementEnd(),
|
"ALTER TABLE " + getFullAckTableName() + " " + getDropAckPKAlterStatementEnd(),
|
||||||
"ALTER TABLE " + getFullAckTableName() + " ADD PRIMARY KEY (CONTAINER, CLIENT_ID, SUB_NAME, PRIORITY)",
|
"ALTER TABLE " + getFullAckTableName() + " ADD PRIMARY KEY (CONTAINER, CLIENT_ID, SUB_NAME, PRIORITY)",
|
||||||
"CREATE INDEX " + getFullMessageTableName() + "_XIDX ON " + getFullMessageTableName() + " (XID)",
|
"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();
|
getCreateLockSchemaStatements();
|
||||||
|
|
Loading…
Reference in New Issue