mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix account_tx sluggishness as per https://github.com/XRPLF/rippled/commit/2e9261cb (#330)
This commit is contained in:
@@ -1132,7 +1132,7 @@ accountTxPage(
|
|||||||
{
|
{
|
||||||
sql = boost::str(
|
sql = boost::str(
|
||||||
boost::format(
|
boost::format(
|
||||||
prefix + (R"(AccountTransactions.LedgerSeq BETWEEN '%u' AND '%u'
|
prefix + (R"(AccountTransactions.LedgerSeq BETWEEN %u AND %u
|
||||||
ORDER BY AccountTransactions.LedgerSeq %s,
|
ORDER BY AccountTransactions.LedgerSeq %s,
|
||||||
AccountTransactions.TxnSeq %s
|
AccountTransactions.TxnSeq %s
|
||||||
LIMIT %u;)")) %
|
LIMIT %u;)")) %
|
||||||
@@ -1155,12 +1155,14 @@ accountTxPage(
|
|||||||
FROM AccountTransactions, Transactions WHERE
|
FROM AccountTransactions, Transactions WHERE
|
||||||
(AccountTransactions.TransID = Transactions.TransID AND
|
(AccountTransactions.TransID = Transactions.TransID AND
|
||||||
AccountTransactions.Account = '%s' AND
|
AccountTransactions.Account = '%s' AND
|
||||||
AccountTransactions.LedgerSeq BETWEEN '%u' AND '%u')
|
AccountTransactions.LedgerSeq BETWEEN %u AND %u)
|
||||||
OR
|
UNION
|
||||||
|
SELECT AccountTransactions.LedgerSeq,AccountTransactions.TxnSeq,Status,RawTxn,TxnMeta
|
||||||
|
FROM AccountTransactions, Transactions WHERE
|
||||||
(AccountTransactions.TransID = Transactions.TransID AND
|
(AccountTransactions.TransID = Transactions.TransID AND
|
||||||
AccountTransactions.Account = '%s' AND
|
AccountTransactions.Account = '%s' AND
|
||||||
AccountTransactions.LedgerSeq = '%u' AND
|
AccountTransactions.LedgerSeq = %u AND
|
||||||
AccountTransactions.TxnSeq %s '%u')
|
AccountTransactions.TxnSeq %s %u)
|
||||||
ORDER BY AccountTransactions.LedgerSeq %s,
|
ORDER BY AccountTransactions.LedgerSeq %s,
|
||||||
AccountTransactions.TxnSeq %s
|
AccountTransactions.TxnSeq %s
|
||||||
LIMIT %u;
|
LIMIT %u;
|
||||||
|
|||||||
Reference in New Issue
Block a user