Don't scan entire account transaction database when adding transaction.

This commit is contained in:
JoelKatz
2013-03-21 06:02:46 -07:00
parent cd02ab87a3
commit 9b20a3ae71

View File

@@ -24,6 +24,8 @@ const char *TxnDBInit[] = {
Account CHARACTER(64), \
LedgerSeq BIGINT UNSIGNED \
);",
"CREATE INDEX AcctTxIDIndex ON \
AccountTransactions(TransID);",
"CREATE INDEX AcctTxIndex ON \
AccountTransactions(Account, LedgerSeq, TransID);",
"CREATE INDEX AcctLgrIndex ON \