Skip to content

MDEV-39405: store the necessary plugin-engines optimizer costs#5077

Open
bsrikanth-mariadb wants to merge 1 commit into
bb-12.3-MDEV-39368-test-replayfrom
13.0-MDEV-39405-store-necessary-plugin-engines-costs
Open

MDEV-39405: store the necessary plugin-engines optimizer costs#5077
bsrikanth-mariadb wants to merge 1 commit into
bb-12.3-MDEV-39368-test-replayfrom
13.0-MDEV-39405-store-necessary-plugin-engines-costs

Conversation

@bsrikanth-mariadb
Copy link
Copy Markdown
Contributor

store the necessary plugin-engines optimizer costs that are used by the query into the context, so that the replay server uses the same while computing query cost

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances the optimizer context replay mechanism by capturing and storing storage engine-specific optimizer costs. It introduces logic to identify relevant storage engines for a query and generates the corresponding global configuration statements. The review feedback correctly identifies several potential memory leaks where hashes are not freed during early returns and suggests optimizations for the cost-storing logic to improve efficiency and safety.

Comment thread sql/opt_context_store_replay.cc
Comment thread sql/opt_context_store_replay.cc
store the necessary plugin-engines optimizer costs that are used by the query
into the context, so that the replay server uses the same while computing
query cost
@bsrikanth-mariadb bsrikanth-mariadb force-pushed the 13.0-MDEV-39405-store-necessary-plugin-engines-costs branch from c0d48c6 to c77a130 Compare May 14, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant