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

Temple Zhou commented on KYLIN-4189:
------------------------------------

The "group by" clause may cause hard computing to implement "count dinstinct". 
If there are too many rows, CPU utility will skyrocket. :(

> Prevent abnormal CPU usage by limiting lookup table's rows
> ----------------------------------------------------------
>
>                 Key: KYLIN-4189
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4189
>             Project: Kylin
>          Issue Type: Improvement
>          Components: Query Engine
>    Affects Versions: v2.4.0, v2.5.0, v2.6.0
>            Reporter: Temple Zhou
>            Assignee: Temple Zhou
>            Priority: Major
>
> Although lookup table size is limited, snapshot table with too many rows will 
> break the server.
> Such as:
> {code:sql}
> select
>   dim.b
> FROM
>   fact
>   INNER JOIN dim ON fact.B = dim.B
> group by
>   dim.b
> {code}
> If the number of rows in column dim.B is million, the query will execute for 
> dozens seconds and the CPU utilization is extremely high.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to