Last active
January 3, 2021 19:28
-
-
Save isopropylcyanide/6743b1e9f87002bbbf8fcfd9ba13be46 to your computer and use it in GitHub Desktop.
MySQL Query Tracer Optimiser Steps (Redacted response)
This file contains 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": [ | |
{ | |
"IN_uses_bisection": true | |
}, | |
{ | |
"join_preparation": { | |
"select#": 2, | |
"steps": [" | |
{ | |
"IN_uses_bisection": true | |
}, | |
{ | |
"join_preparation": { | |
"select#": 3, | |
"steps": [ | |
{ | |
"expanded_query": " | |
}, | |
{ | |
"transformation": { | |
"select#": 3, | |
"from": "IN (SELECT)", | |
"to": "semijoin", | |
"chosen": true | |
} | |
} | |
] | |
} | |
} | |
] | |
} | |
}, | |
{ | |
"join_optimization": { | |
"select#": 1, | |
"steps": [ | |
{ | |
"condition_processing": { | |
"condition": "WHERE", | |
"original_condition": ", | |
"steps": [ | |
... | |
] | |
} | |
}, | |
"rows_estimation": [ | |
{ | |
"table": "`vernacular_creative_group` `vernacular0_`", | |
"range_analysis": { | |
"table_scan": { | |
"rows": 4369543, | |
"cost": 961948 | |
}, | |
"potential_range_indexes": [ | |
{ | |
"index": "PRIMARY", | |
"usable": false, | |
"cause": "not_applicable" | |
}, | |
{ | |
"index": "content_id", | |
"usable": false, | |
"cause": "not_applicable" | |
} | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"considered_execution_plans": [ | |
{ | |
"plan_prefix": [ | |
], | |
"table": "`vernacular_creative_group` `vernacular0_`", | |
"best_access_path": { | |
"considered_access_paths": [ | |
{ | |
"access_type": "ref", | |
"index": "creative_template_id", | |
"rows": 2.18e6, | |
"cost": 701065, | |
"chosen": true | |
} | |
] | |
}, | |
"condition_filtering_pct": 80, | |
"rows_for_plan": 1.75e6, | |
"cost_for_plan": 701065, | |
"chosen": true | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment