Closed oleks-rip closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 76.95%. Comparing base (
69143d7
) to head (9a0c4df
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
High Level Overview of Change
perf: improve
account_tx
SQL query:The witness server makes heavily use of the
account_tx
RPC command. Perf testing showed that the SQL query used byaccount_tx
became unacceptably slow when the DB was large and there was amarker
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 useUNION
instead ofOR
and significantly improves performance. See RXI-896 and RIPD-1847 for more details.Example
was:
became:
Type of Change