You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Yaguang Jia (Jira)" <ji...@apache.org> on 2023/02/09 09:26:00 UTC

[jira] [Commented] (KYLIN-5430) Improve the performance of queries with a large number of in values provided they hit indexes contain shardBy column

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

Yaguang Jia commented on KYLIN-5430:
------------------------------------

h2. Root Cause

segment pruning iterates over IN conditions and filters shards based on each IN when each IN condition is on a shardBy column. When there are very many IN conditions and many shards, it will affect the query performance.
h2. Dev Design

Add item-level switch kylin.query.skip-shard-pruning-for-in, default is false. turn on the switch (set to true) to skip pruning if there are more than 256 IN conditions.

>  Improve the performance of queries with a large number of in values provided they hit indexes contain shardBy column
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: KYLIN-5430
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5430
>             Project: Kylin
>          Issue Type: Improvement
>    Affects Versions: 5.0-alpha
>            Reporter: Yaguang Jia
>            Assignee: Yaguang Jia
>            Priority: Major
>             Fix For: 5.0-alpha
>
>
> When ShardBy column is set in the model and there are many in conditions in sql, Kylin query will take longer time



--
This message was sent by Atlassian Jira
(v8.20.10#820010)