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

Index selectivity calculation is incorrect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 3.0.0 rc2
    • Component/s: Legacy/CQL
    • Labels:
      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

            • Assignee:
              samt Sam Tunnicliffe
              Reporter:
              samt Sam Tunnicliffe
              Authors:
              Sam Tunnicliffe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: