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

Add the ability to use multiple indexes in a single query

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

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      Existing data filtering uses the following algorithm

         1. find best selective predicate based on the smallest mean columns count
         2. fetch rows for the best selective predicate predicate, then filter the data based on other predicates left.
      

      So potentially we could improve the performance by

         1.  joining multiple predicates then do the data filtering for other predicates.
         2.  fine tune the best predicate selection algorithm
      

      For multiple predicate join, it could improve performance if one predicate has many entries and another predicate has a very few of entries. It means a few index CF read, join the row keys, fetch rows then filter other predicates

      Another approach is to have index on multiple columns.

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned Assign to me
            alexliu68 Alex Liu
            Votes:
            4 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment