Improve tx_search
queries performance
#4003
Labels
O: performance
Objective: cause to improve performance
Milestone
From Jesse via Slack:
Currently when hermes launches, it tries to find all packets that aren't cleared yet. For doing this it does roughly the following, using
tx_search
:What we found is that
packet_sequence
only, then filter by channel/ports in the hermes sidetx_search
not really having cardinality on each index filter (for this TxSearch subroutine would never be able to optimize which filters to scan through first in effort to minimize search space); with the current TxSearch logicTxSearch
might attempt to scan through all indexes that matches source_channel/port + dst_channel/port, which there might be millions.sequence
tends to be more unique across channels; it'll only give youN
sequences whereN
is the number of open combination of src/dstThe text was updated successfully, but these errors were encountered: