Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: improve
account_tx
SQL query: (XRPLF#4955)
The witness server makes heavily use of the `account_tx` RPC command. Perf testing showed that the SQL query used by `account_tx` became unacceptably slow when the DB was large and there was a `marker` parameter. The plan for the query showed only indexed reads. This appears to be an issue with the internal SQLite optimizer. This patch rewrote the query to use `UNION` instead of `OR` and significantly improves performance. See RXI-896 and RIPD-1847 for more details.
- Loading branch information