Query time 0.01720
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "26232.15"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "23520.60"
},
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ALL",
"possible_keys": [
"c_status"
],
"rows_examined_per_scan": 1314,
"rows_produced_per_join": 131,
"filtered": "10.00",
"cost_info": {
"read_cost": "121.33",
"eval_cost": "13.14",
"prefix_cost": "134.47",
"data_read_per_join": "300K"
},
"used_columns": [
"option_id",
"product_id",
"company_id",
"option_type",
"regexp",
"required",
"multiupload",
"allowed_extensions",
"max_file_size",
"missing_variants_handling",
"status",
"position",
"value"
],
"attached_condition": "(`chocoramo`.`a`.`status` = 'A')"
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id",
"lang_code"
],
"key_length": "9",
"ref": [
"chocoramo.a.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 131,
"filtered": "100.00",
"cost_info": {
"read_cost": "32.85",
"eval_cost": "13.14",
"prefix_cost": "180.46",
"data_read_per_join": "446K"
},
"used_columns": [
"option_id",
"lang_code",
"option_name",
"option_text",
"description",
"comment",
"inner_hint",
"incorrect_message"
]
}
},
{
"table": {
"table_name": "c",
"access_type": "ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"option_id"
],
"key_length": "3",
"ref": [
"chocoramo.a.option_id"
],
"rows_examined_per_scan": 179,
"rows_produced_per_join": 23520,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "179.03",
"eval_cost": "2352.06",
"prefix_cost": "2711.55",
"data_read_per_join": "183K"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "<if>(found_match(c), ((`chocoramo`.`a`.`product_id` = 65239) or (`chocoramo`.`c`.`product_id` = 65239)), true)"
}
}
]
}
}
}