Created
January 11, 2023 00:45
-
-
Save mdcallag/c02f1201df77ef37752cd66c7f326531 to your computer and use it in GitHub Desktop.
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
| | { | |
| "steps": [ | |
| { | |
| "join_preparation": { | |
| "select#": 1, | |
| "steps": [ | |
| { | |
| "expanded_query": "/* select#1 */ select `pi1`.`price` AS `price`,`pi1`.`dateandtime` AS `dateandtime`,`pi1`.`customerid` AS `customerid` from `pi1` FORCE INDEX (`pi1_pdc`) where (`pi1`.`price` >= 18.076559) order by `pi1`.`price`,`pi1`.`dateandtime`,`pi1`.`customerid` limit 10" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "join_optimization": { | |
| "select#": 1, | |
| "steps": [ | |
| { | |
| "condition_processing": { | |
| "condition": "WHERE", | |
| "original_condition": "(`pi1`.`price` >= 18.076559)", | |
| "steps": [ | |
| { | |
| "transformation": "equality_propagation", | |
| "resulting_condition": "(`pi1`.`price` >= 18.076559)" | |
| }, | |
| { | |
| "transformation": "constant_propagation", | |
| "resulting_condition": "(`pi1`.`price` >= 18.076559)" | |
| }, | |
| { | |
| "transformation": "trivial_condition_removal", | |
| "resulting_condition": "(`pi1`.`price` >= 18.076559)" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "substitute_generated_columns": { | |
| } | |
| }, | |
| { | |
| "table_dependencies": [ | |
| { | |
| "table": "`pi1` FORCE INDEX (`pi1_pdc`)", | |
| "row_may_be_null": false, | |
| "map_bit": 0, | |
| "depends_on_map_bits": [ | |
| ] | |
| } | |
| ] | |
| }, | |
| { | |
| "ref_optimizer_key_uses": [ | |
| ] | |
| }, | |
| { | |
| "rows_estimation": [ | |
| { | |
| "table": "`pi1` FORCE INDEX (`pi1_pdc`)", | |
| "range_analysis": { | |
| "table_scan": { | |
| "rows": 449076132, | |
| "cost": 1.79769e+308 | |
| }, | |
| "potential_range_indexes": [ | |
| { | |
| "index": "PRIMARY", | |
| "usable": false, | |
| "cause": "not_applicable" | |
| }, | |
| { | |
| "index": "pi1_marketsegment", | |
| "usable": false, | |
| "cause": "not_applicable" | |
| }, | |
| { | |
| "index": "pi1_registersegment", | |
| "usable": false, | |
| "cause": "not_applicable" | |
| }, | |
| { | |
| "index": "pi1_pdc", | |
| "usable": true, | |
| "key_parts": [ | |
| "price", | |
| "dateandtime", | |
| "customerid", | |
| "transactionid" | |
| ] | |
| } | |
| ], | |
| "best_covering_index_scan": { | |
| "index": "pi1_pdc", | |
| "cost": 4.61116e+07, | |
| "chosen": true | |
| }, | |
| "setup_range_conditions": [ | |
| ], | |
| "group_index_range": { | |
| "chosen": false, | |
| "cause": "not_group_by_or_distinct" | |
| }, | |
| "skip_scan_range": { | |
| "potential_skip_scan_indexes": [ | |
| { | |
| "index": "pi1_pdc", | |
| "usable": false, | |
| "cause": "prefix_not_const_equality" | |
| } | |
| ] | |
| }, | |
| "analyzing_range_alternatives": { | |
| "range_scan_alternatives": [ | |
| { | |
| "index": "pi1_pdc", | |
| "ranges": [ | |
| "18.0766 <= price" | |
| ], | |
| "index_dives_for_eq_ranges": true, | |
| "rowid_ordered": false, | |
| "using_mrr": false, | |
| "index_only": true, | |
| "in_memory": 0, | |
| "rows": 224538066, | |
| "cost": 2.30558e+07, | |
| "chosen": true | |
| } | |
| ], | |
| "analyzing_roworder_intersect": { | |
| "usable": false, | |
| "cause": "too_few_roworder_scans" | |
| } | |
| }, | |
| "chosen_range_access_summary": { | |
| "range_access_plan": { | |
| "type": "range_scan", | |
| "index": "pi1_pdc", | |
| "rows": 2.24538e+08, | |
| "ranges": [ | |
| "18.0766 <= price" | |
| ] | |
| }, | |
| "rows_for_plan": 2.24538e+08, | |
| "cost_for_plan": 2.30558e+07, | |
| "chosen": true | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "considered_execution_plans": [ | |
| { | |
| "plan_prefix": [ | |
| ], | |
| "table": "`pi1` FORCE INDEX (`pi1_pdc`)", | |
| "best_access_path": { | |
| "considered_access_paths": [ | |
| { | |
| "rows_to_scan": 224538066, | |
| "filtering_effect": [ | |
| ], | |
| "final_filtering_effect": 1, | |
| "access_type": "range", | |
| "range_details": { | |
| "used_index": "pi1_pdc" | |
| }, | |
| "resulting_rows": 2.24538e+08, | |
| "cost": 4.55096e+07, | |
| "chosen": true | |
| } | |
| ] | |
| }, | |
| "condition_filtering_pct": 100, | |
| "rows_for_plan": 2.24538e+08, | |
| "cost_for_plan": 4.55096e+07, | |
| "chosen": true | |
| } | |
| ] | |
| }, | |
| { | |
| "attaching_conditions_to_tables": { | |
| "original_condition": "(`pi1`.`price` >= 18.076559)", | |
| "attached_conditions_computation": [ | |
| { | |
| "table": "`pi1` FORCE INDEX (`pi1_pdc`)", | |
| "rechecking_index_usage": { | |
| "recheck_reason": "low_limit", | |
| "limit": 10, | |
| "row_estimate": 2.24538e+08 | |
| } | |
| } | |
| ], | |
| "attached_conditions_summary": [ | |
| { | |
| "table": "`pi1` FORCE INDEX (`pi1_pdc`)", | |
| "attached": "(`pi1`.`price` >= 18.076559)" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "optimizing_distinct_group_by_order_by": { | |
| "simplifying_order_by": { | |
| "original_clause": "`pi1`.`price`,`pi1`.`dateandtime`,`pi1`.`customerid`", | |
| "items": [ | |
| { | |
| "item": "`pi1`.`price`" | |
| }, | |
| { | |
| "item": "`pi1`.`dateandtime`" | |
| }, | |
| { | |
| "item": "`pi1`.`customerid`" | |
| } | |
| ], | |
| "resulting_clause_is_simple": true, | |
| "resulting_clause": "`pi1`.`price`,`pi1`.`dateandtime`,`pi1`.`customerid`" | |
| } | |
| } | |
| }, | |
| { | |
| "reconsidering_access_paths_for_index_ordering": { | |
| "clause": "ORDER BY", | |
| "steps": [ | |
| ], | |
| "index_order_summary": { | |
| "table": "`pi1` FORCE INDEX (`pi1_pdc`)", | |
| "index_provides_order": true, | |
| "order_direction": "asc", | |
| "index": "pi1_pdc", | |
| "plan_changed": false | |
| } | |
| } | |
| }, | |
| { | |
| "finalizing_table_conditions": [ | |
| { | |
| "table": "`pi1` FORCE INDEX (`pi1_pdc`)", | |
| "original_table_condition": "(`pi1`.`price` >= 18.076559)", | |
| "final_table_condition ": "(`pi1`.`price` >= 18.076559)" | |
| } | |
| ] | |
| }, | |
| { | |
| "refine_plan": [ | |
| { | |
| "table": "`pi1` FORCE INDEX (`pi1_pdc`)" | |
| } | |
| ] | |
| }, | |
| { | |
| "considering_tmp_tables": [ | |
| ] | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "join_execution": { | |
| "select#": 1, | |
| "steps": [ | |
| ] | |
| } | |
| } | |
| ] | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment