[
https://issues.apache.org/jira/browse/IGNITE-29325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nikita Amelchev updated IGNITE-29325:
-------------------------------------
Description:
After partition pruning, or when query partitions are set explicitly, only a
few partitions of a colocation group are left.
The initiator node still checks every partition of the table twice per query:
when the filtered assignments are built and when a fragment executed on this
node looks for its partitions.
For a query by a primary key these checks take a noticeable part of the
execution time.
was:
When partition pruning or explicitly set query partitions leave only a few
partitions, the colocation group still keeps a per-partition assignments list
of the full size.
The list is rebuilt partition by partition for every query, and a fragment
executed on the initiator node walks all of it again to find its partitions, so
a query by a primary key pays for every partition of the table.
> SQL Calcite: Do not check every partition of a colocation group on the
> initiator node after partition pruning
> -------------------------------------------------------------------------------------------------------------
>
> Key: IGNITE-29325
> URL: https://issues.apache.org/jira/browse/IGNITE-29325
> Project: Ignite
> Issue Type: Improvement
> Reporter: Nikita Amelchev
> Assignee: Nikita Amelchev
> Priority: Major
> Time Spent: 50m
> Remaining Estimate: 0h
>
> After partition pruning, or when query partitions are set explicitly, only a
> few partitions of a colocation group are left.
> The initiator node still checks every partition of the table twice per query:
> when the filtered assignments are built and when a fragment executed on this
> node looks for its partitions.
> For a query by a primary key these checks take a noticeable part of the
> execution time.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)