Add recipient indexes for payment/AT transactions to speed up AT processing

This commit is contained in:
catbref 2020-10-06 14:09:42 +01:00
parent a2038274e1
commit 1958444bc4

View File

@ -671,6 +671,12 @@ public class HSQLDBDatabaseUpdates {
stmt.execute("ALTER TABLE DatabaseInfo ADD online_signatures_trim_height INT NOT NULL DEFAULT 0");
break;
case 27:
// More indexes
stmt.execute("CREATE INDEX IF NOT EXISTS PaymentTransactionsRecipientIndex ON PaymentTransactions (recipient)");
stmt.execute("CREATE INDEX IF NOT EXISTS ATTransactionsRecipientIndex ON ATTransactions (recipient)");
break;
default:
// nothing to do
return false;