phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samarth Jain (JIRA)" <>
Subject [jira] [Updated] (PHOENIX-3667) Optimize BooleanExpressionFilter for tables with encoded columns
Date Fri, 24 Feb 2017 23:06:44 GMT


Samarth Jain updated PHOENIX-3667:
    Attachment: PHOENIX-3667_v2.patch

Thanks for the reviews, [~jamestaylor]. Updated patch with the getCellAtIndex() method as
you suggested.

> Optimize BooleanExpressionFilter for tables with encoded columns
> ----------------------------------------------------------------
>                 Key: PHOENIX-3667
>                 URL:
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: James Taylor
>            Assignee: Samarth Jain
>         Attachments: PHOENIX-3667.patch, PHOENIX-3667_v2.patch, PHOENIX-3667_wip.patch,
> The client side of Phoenix determines the subclass of BooleanExpressionFilter we use
based on how many column families and column qualifiers are being referenced. The idea is
to minimize the lookup cost during filter evaluation. For encoded columns, instead of using
a Map or Set, we can create a few new subclasses of BooleanExpressionFilter that use an array
instead. No need for any lookups or equality checks - just fill in the position based on the
column qualifier value instead. Since filters are applied on every row between the start/stop
key, this will improve performance quite a bit.

This message was sent by Atlassian JIRA

View raw message