Query time 0.00069
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "105.03"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "20.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": [
"object_id"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 20,
"rows_produced_per_join": 20,
"filtered": "100.00",
"index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'category') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (8164,8161,8163,9766,8750,9765,8162,8670,8733,8158,8157,8160,8741,9767,8668,8763,8731,8734,8165,8732)))",
"cost_info": {
"read_cost": "40.10",
"eval_cost": "2.00",
"prefix_cost": "42.10",
"data_read_per_join": "1K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "cscart_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "3",
"ref": [
"maniamall_cscart.cscart_images_links.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.68",
"eval_cost": "2.00",
"prefix_cost": "63.79",
"data_read_per_join": "15K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y"
],
"attached_condition": "<if>(is_not_null_compl(cscart_images), (`maniamall_cscart`.`cscart_images_links`.`image_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "cscart_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"maniamall_cscart.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.24",
"eval_cost": "2.00",
"prefix_cost": "85.03",
"data_read_per_join": "11K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`maniamall_cscart`.`cscart_common_descriptions`.`object_id` = `maniamall_cscart`.`cscart_images`.`image_id`), true)"
}
}
]
}
}
}
Result
| pair_id |
object_id |
object_type |
image_id |
detailed_id |
type |
position |
image_path |
alt |
image_x |
image_y |
images_image_id |
| 927401 |
8157 |
category |
0 |
927638 |
M |
0 |
|
|
|
|
|
| 927501 |
8158 |
category |
0 |
927738 |
M |
0 |
|
|
|
|
|
| 927505 |
8160 |
category |
0 |
927742 |
M |
0 |
|
|
|
|
|
| 927507 |
8161 |
category |
0 |
927744 |
M |
0 |
|
|
|
|
|
| 927837 |
8162 |
category |
0 |
928074 |
M |
0 |
|
|
|
|
|
| 927846 |
8163 |
category |
0 |
928083 |
M |
0 |
|
|
|
|
|
| 927877 |
8164 |
category |
0 |
928114 |
M |
0 |
|
|
|
|
|
| 928070 |
8165 |
category |
0 |
928307 |
M |
0 |
|
|
|
|
|
| 942494 |
8668 |
category |
0 |
942731 |
M |
0 |
|
|
|
|
|
| 943414 |
8670 |
category |
0 |
943651 |
M |
0 |
|
|
|
|
|
| 962889 |
8731 |
category |
0 |
963126 |
M |
0 |
|
|
|
|
|
| 962983 |
8732 |
category |
0 |
963220 |
M |
0 |
|
|
|
|
|
| 963046 |
8733 |
category |
0 |
963283 |
M |
0 |
|
|
|
|
|
| 963051 |
8734 |
category |
0 |
963288 |
M |
0 |
|
|
|
|
|
| 963511 |
8741 |
category |
0 |
963748 |
M |
0 |
|
|
|
|
|
| 964099 |
8750 |
category |
0 |
964336 |
M |
0 |
|
|
|
|
|
| 964771 |
8763 |
category |
0 |
965008 |
M |
0 |
|
|
|
|
|
| 1092747 |
9765 |
category |
0 |
1092984 |
M |
0 |
|
|
|
|
|
| 1092839 |
9766 |
category |
0 |
1093076 |
M |
0 |
|
|
|
|
|
| 1096193 |
9767 |
category |
0 |
1096430 |
M |
0 |
|
|
|
|
|