Skip to content

Add a step to analyze partitioned parent tables. - #117

Open
mvnural wants to merge 2 commits into
masterfrom
analyze-webready
Open

Add a step to analyze partitioned parent tables.#117
mvnural wants to merge 2 commits into
masterfrom
analyze-webready

Conversation

@mvnural

@mvnural mvnural commented Aug 26, 2026

Copy link
Copy Markdown
Member

We need to do this after all orgSpecific partitioned webready tables are populated so we don't have to worry about it after cloning. We do have individual child partitions analyzed as part of the workflow but the root partitions are not automatically analyzed. This means the planner will be completely blind when we don't do partition pruning and as a result will chose wildly inefficient query plans in such cases.

We need to do this after all orgSpecific partitioned webready tables are populated so we don't have to worry about it after cloning.
We do have individual child partitions analyzed as part of the workflow but the root partitions are not automatically analyzed. This means the planner will be completely blind when we don't do partition pruning and as a result will chose wildly inefficient query plans in such cases.
@mvnural
mvnural requested a review from jbrestel August 26, 2026 14:41
Child-partitions are already analyzed immediately after they are created so no need to re-analyze them at this point. We only want the parent partition. This should cut down the time for this step significantly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant