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

Remove unnecessary index lookups for single partition reads

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Not A Problem
    • 3.0.0
    • Legacy/CQL
    • None
    • Normal

    Description

      For single partition reads, we currently perform an unnecessary call to SecondaryIndexManager to lookup the most selective index based on the command's RowFilter. This is redundant as if any applicable indexes are present, the query would be performed using a range command (there was some code introduced into CassandraIndexSearcher by CASSANDRA-8099 in preparation for supporting indexes on single partition reads, but it is as yet unused). Given that, we should make sure we don't perform that lookup for now.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            samt Sam Tunnicliffe Assign to me
            samt Sam Tunnicliffe
            Sam Tunnicliffe
            Sylvain Lebresne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment