Added an index to help speed up recent queries

This commit is contained in:
CalDescent 2021-11-06 12:47:32 +00:00
parent b2e2af51ed
commit e652038018

View File

@ -922,6 +922,8 @@ public class HSQLDBDatabaseUpdates {
stmt.execute("ALTER TABLE ArbitraryTransactions ADD compression INTEGER NOT NULL DEFAULT 0"); stmt.execute("ALTER TABLE ArbitraryTransactions ADD compression INTEGER NOT NULL DEFAULT 0");
// For finding transactions by registered name // For finding transactions by registered name
stmt.execute("CREATE INDEX ArbitraryNameIndex ON ArbitraryTransactions (name)"); stmt.execute("CREATE INDEX ArbitraryNameIndex ON ArbitraryTransactions (name)");
// For finding transactions by registered name and service
stmt.execute("CREATE INDEX ArbitraryNameServiceIndex ON ArbitraryTransactions (name, service)");
break; break;
case 39: case 39: