Commit db2b52c9 authored by Dan Notestein's avatar Dan Notestein
Browse files

Add missing index for voter filtering in witness votes history

The get_witness_votes_history endpoint was timing out when filtering
by voter-name because there was no index on voter_id. The existing
index only covered (witness_id, source_op_block).

This adds an index on (witness_id, voter_id) to enable efficient
lookups when the voter-name filter is used.
parent c3bc20dc
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment