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

Wenzhuang Zhu commented on CALCITE-6907:
----------------------------------------

[~mbudiu], thanks for the review. I opened 
https://issues.apache.org/jira/browse/CALCITE-7393 to track the type digest 
changes only.

> Optimize latency for large plan
> -------------------------------
>
>                 Key: CALCITE-6907
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6907
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Wenzhuang Zhu
>            Assignee: Wenzhuang Zhu
>            Priority: Major
>              Labels: pull-request-available
>
> *HepPlanner:*
> HepPlanner cannot quickly optimize plan with 10K+ rel nodes.
>   We can improve it by:
> 1.HepPlanner support graph reuse for different HepProgram.
> 2.Fast graph GC on discardedVertex's subtree. Don't do whole graph GC.
> 3.Use large plan friendly graph iterator.
>  
> {*}RelDataTypeDigest{*}:
> For nested Type with 1K+ inner field, computeDigest for composite type is too 
> heavy.
> RelDataTypeDigest is similar to RelDigest. It will cache hash code and 
> prevent generate type string for composite type.
>  
> *RelOnceVisitor:*
> Deep nested CTE can be expanded to more than 100 millions nodes if we don't 
> do dedup during visiting Rel tree.
> BTW, explain has the same problem, needs a better string explain format for 
> duplicate RelNode.



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

Reply via email to