Revert "Fix 'NetworkOPs::countAccountTxs' taking way too long."

This reverts commit ff127d2b25.
A new fix is in development.
This commit is contained in:
JoelKatz
2013-08-16 17:50:30 -07:00
parent 44aa45f307
commit eb121e9312

View File

@@ -1217,8 +1217,7 @@ NetworkOPs::transactionsSQL (std::string selection, const RippleAddress& account
std::string sql =
boost::str (boost::format ("SELECT %s FROM "
"AccountTransactions INDEXED BY AcctTxIndex INNER JOIN Transactions "
"ON Transactions.TransID = AccountTransactions.TransID "
"AccountTransactions INNER JOIN Transactions ON Transactions.TransID = AccountTransactions.TransID "
"WHERE Account = '%s' %s %s "
"ORDER BY AccountTransactions.LedgerSeq %s, AccountTransactions.TxnSeq %s, AccountTransactions.TransID %s "
"LIMIT %u, %u;")