Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10435

Index selectivity calculation is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 3.0.0 rc2
    • Legacy/CQL
    • None

    Description

      In SecondaryIndexManager::getBestIndexFor, the calculation to choose the most selective from a set of candidate indexes is incorrect. It currently chooses the index which returns the highest value from Index::getEstimatedResultRows. Obviously it should return the one with the fewest estimated results.

      Attachments

        Activity

          People

            samt Sam Tunnicliffe
            samt Sam Tunnicliffe
            Sam Tunnicliffe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: