You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2017/01/11 06:03:58 UTC

[jira] [Comment Edited] (PHOENIX-3560) Aggregate query performance is worse with encoded columns for schema with large number of columns

    [ https://issues.apache.org/jira/browse/PHOENIX-3560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15806107#comment-15806107 ] 

Lars Hofhansl edited comment on PHOENIX-3560 at 1/11/17 6:03 AM:
-----------------------------------------------------------------

[~mujtabachohan], would you mind trying out this patch to see if it helps perf of count\(*) query? 


was (Author: samarthjain):
[~mujtabachohan], would you mind trying out this patch to see if it helps perf of count(*) query? 

> Aggregate query performance is worse with encoded columns for schema with large number of columns
> -------------------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-3560
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3560
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Mujtaba Chohan
>            Assignee: Samarth Jain
>             Fix For: 4.10.0
>
>         Attachments: DataGenerator.java, PHOENIX-3565.patch
>
>
> Schema with 5K columns
> {noformat}
> create table (k1 integer, k2 integer, c1 varchar ... c5000 varchar CONSTRAINT PK PRIMARY KEY (K1, K2)) 
> VERSIONS=1, MULTI_TENANT=true, IMMUTABLE_ROWS=true
> {noformat}
> In this test, there are no null columns and each column contains 200 chars i.e. 1MB of data per row.
> Count * aggregation is about 5X slower with encoded columns when compared to table non-encoded columns using the same schema.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)