{ "steps": [ { "join_preparation": { "select#": 1, "steps": [ { "expanded_query": "/* select#1 */ select `cast_info`.`role_id` AS `role_id` from `cast_info` where ((`cast_info`.`role_id` = 1) and (`cast_info`.`note` like '%Jaime%'))" } ] } }, { "join_optimization": { "select#": 1, "steps": [ { "condition_processing": { "condition": "WHERE", "original_condition": "((`cast_info`.`role_id` = 1) and (`cast_info`.`note` like '%Jaime%'))", "steps": [ { "transformation": "equality_propagation", "resulting_condition": "((`cast_info`.`note` like '%Jaime%') and multiple equal(1, `cast_info`.`role_id`))" }, { "transformation": "constant_propagation", "resulting_condition": "((`cast_info`.`note` like '%Jaime%') and multiple equal(1, `cast_info`.`role_id`))" }, { "transformation": "trivial_condition_removal", "resulting_condition": "((`cast_info`.`note` like '%Jaime%') and multiple equal(1, `cast_info`.`role_id`))" } ] } }, { "table_dependencies": [ { "table": "`cast_info`", "row_may_be_null": false, "map_bit": 0, "depends_on_map_bits": [ ] } ] }, { "ref_optimizer_key_uses": [ { "table": "`cast_info`", "field": "role_id", "equals": "1", "null_rejecting": false } ] }, { "rows_estimation": [ { "table": "`cast_info`", "range_analysis": { "table_scan": { "rows": 20518548, "cost": 4.17e6 }, "potential_range_indices": [ { "index": "PRIMARY", "usable": false, "cause": "not_applicable" }, { "index": "role_id_note", "usable": true, "key_parts": [ "role_id", "note", "id" ] } ], "best_covering_index_scan": { "index": "role_id_note", "cost": 5.97e6, "chosen": false, "cause": "cost" }, "setup_range_conditions": [ ], "group_index_range": { "chosen": false, "cause": "not_group_by_or_distinct" }, "analyzing_range_alternatives": { "range_scan_alternatives": [ { "index": "role_id_note", "ranges": [ "1 <= role_id <= 1" ], "index_dives_for_eq_ranges": true, "rowid_ordered": false, "using_mrr": false, "index_only": true, "rows": 10259274, "cost": 2.98e6, "chosen": true } ], "analyzing_roworder_intersect": { "usable": false, "cause": "too_few_roworder_scans" } }, "chosen_range_access_summary": { "range_access_plan": { "type": "range_scan", "index": "role_id_note", "rows": 10259274, "ranges": [ "1 <= role_id <= 1" ] }, "rows_for_plan": 10259274, "cost_for_plan": 2.98e6, "chosen": true } } } ] }, { "considered_execution_plans": [ { "plan_prefix": [ ], "table": "`cast_info`", "best_access_path": { "considered_access_paths": [ { "access_type": "ref", "index": "role_id_note", "rows": 1.03e7, "cost": 2.98e6, "chosen": true }, { "access_type": "range", "cause": "heuristic_index_cheaper", "chosen": false } ] }, "cost_for_plan": 2.98e6, "rows_for_plan": 1.03e7, "chosen": true } ] }, { "attaching_conditions_to_tables": { "original_condition": "((`cast_info`.`role_id` = 1) and (`cast_info`.`note` like '%Jaime%'))", "attached_conditions_computation": [ ], "attached_conditions_summary": [ { "table": "`cast_info`", "attached": "(`cast_info`.`note` like '%Jaime%')" } ] } }, { "refine_plan": [ { "table": "`cast_info`" } ] } ] } }, { "join_execution": { "select#": 1, "steps": [ ] } } ] }