cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Liu (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-6048) Add the ability to use multiple indexes in a single query
Date Mon, 21 Oct 2013 18:02:46 GMT


Alex Liu commented on CASSANDRA-6048:

If we allow hash collision , we can use bitmap to join all the indexes. For any false results,
we can filter them out during filtering the base CF. First find the most select index(primary),
use it as a base. Once "AND" all bitmaps, we can scan the primary index to filter the "good"
results, then fetch base CF and filter out any "bad" results.

> Add the ability to use multiple indexes in a single query
> ---------------------------------------------------------
>                 Key: CASSANDRA-6048
>                 URL:
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Core
>            Reporter: Alex Liu
>            Assignee: Alex Liu
>             Fix For: 2.1
>         Attachments: 6048-1.2-branch.txt, 6048-trunk.txt
> Existing data filtering uses the following algorithm
> {code}
>    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.
> {code}
> So potentially we could improve the performance by
> {code}
>    1.  joining multiple predicates then do the data filtering for other predicates.
>    2.  fine tune the best predicate selection algorithm
> {code}
> 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.

This message was sent by Atlassian JIRA

View raw message