Crds::get_votes is scanning over all votes in the crds table only to return those inserted since the given cursor: https://github.com/solana-labs/solana/blob/2ae57c172/core/src/crds.rs#L250-L266 Having votes indexed by insert order avoids the table scan and will be more efficient.