Description
Currently, given SecondaryIndexManager tracks all per-column and per-row secondary indexes in a by-column map, when computing indexes for a given column it has to scan all indexes for all columns, meaning that it will scan the same per-row index N times, where N is the number of columns it is associated with, raising the complexity of what could be an O(1) operation to O(N).