Query time 0.01219
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "13015.76"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "11616.60"
},
"nested_loop": [
{
"table": {
"table_name": "a",
"access_type": "ALL",
"possible_keys": [
"c_status"
],
"rows_examined_per_scan": 1019,
"rows_produced_per_join": 101,
"filtered": "10.00",
"cost_info": {
"read_cost": "94.20",
"eval_cost": "10.19",
"prefix_cost": "104.39",
"data_read_per_join": "233K"
},
"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": "(`cscartdb`.`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": [
"cscartdb.a.option_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 101,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.48",
"eval_cost": "10.19",
"prefix_cost": "140.06",
"data_read_per_join": "346K"
},
"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": [
"cscartdb.a.option_id"
],
"rows_examined_per_scan": 114,
"rows_produced_per_join": 11616,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "97.44",
"eval_cost": "1161.66",
"prefix_cost": "1399.16",
"data_read_per_join": "90K"
},
"used_columns": [
"option_id",
"product_id"
],
"attached_condition": "<if>(found_match(c), ((`cscartdb`.`a`.`product_id` = 31971) or (`cscartdb`.`c`.`product_id` = 31971)), true)"
}
}
]
}
}
}