MDEV-38701: hook records_in_range, and const tables#4628
Open
bsrikanth-mariadb wants to merge 1 commit into12.2-MDEV-36523-load-basic-stats-backfrom
Open
MDEV-38701: hook records_in_range, and const tables#4628bsrikanth-mariadb wants to merge 1 commit into12.2-MDEV-36523-load-basic-stats-backfrom
bsrikanth-mariadb wants to merge 1 commit into12.2-MDEV-36523-load-basic-stats-backfrom
Conversation
When the optimizer_record_context=ON save the following into the trace: - 1. the records_in_range() call arguments, and its output records count in the method ror_scan_selectivity() 2. the const table rows from join_read_const() using an INSERT statement Also, when the optimizer_replay_context is SET, read the stored optimizer context from the trace, and do the following: - 1. execute the INSERT statements to add rows into the respective tables, 2. fetch output records count using the arguments to records_in_range() method and use them to instead of actually making a call to records_in_range() call from ror_scan_selectivity().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the optimizer_record_context=ON save the following into the trace: -
Also, when the optimizer_replay_context is SET, read the stored optimizer context from the trace, and do the following: -