Description
When rebuilding secondary indexes, the index task is executed regardless if the actual SecondaryIndex#indexes(ByteBuffer ) implementation of any index returns true for any column, meaning that the expensive task of going through all sstables and related rows will be executed even if in the end no column/row will be actually indexed.
This is a huge performance hit when i.e. bootstrapping with large datasets on tables having custom secondary index implementations whose indexes() implementation might return false.
Attachments
Attachments
Issue Links
- relates to
-
CASSANDRA-9281 Index selection during rebuild fails with certain table layouts.
- Resolved
-
CASSANDRA-9314 Overload SecondaryIndex#indexes to accept the column definition
- Resolved