Query time 0.00213
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "80.40"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "15.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": 15,
"rows_produced_per_join": 15,
"filtered": "100.00",
"index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (1067240,1068615,1067578,1072191,1068398,1067678,1067521,1067318,1068716,1067280,1070015,1072193,1731948,1068147,1731949)))",
"cost_info": {
"read_cost": "30.94",
"eval_cost": "1.50",
"prefix_cost": "32.44",
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.99",
"eval_cost": "1.50",
"prefix_cost": "48.93",
"data_read_per_join": "11K"
},
"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": 15,
"filtered": "100.00",
"cost_info": {
"read_cost": "14.98",
"eval_cost": "1.50",
"prefix_cost": "65.40",
"data_read_per_join": "8K"
},
"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 |
| 1650301 |
1067240 |
product |
0 |
1650539 |
M |
0 |
|
|
|
|
|
| 1650382 |
1067280 |
product |
0 |
1650620 |
M |
0 |
|
|
|
|
|
| 1650431 |
1067318 |
product |
0 |
1650669 |
M |
0 |
|
|
|
|
|
| 1650831 |
1067521 |
product |
0 |
1651069 |
M |
0 |
|
|
|
|
|
| 1650922 |
1067578 |
product |
0 |
1651160 |
M |
0 |
|
|
|
|
|
| 1651083 |
1067678 |
product |
0 |
1651321 |
M |
0 |
|
|
|
|
|
| 1651869 |
1068147 |
product |
0 |
1652107 |
M |
0 |
|
|
|
|
|
| 1652311 |
1068398 |
product |
0 |
1652549 |
M |
0 |
|
|
|
|
|
| 1652693 |
1068615 |
product |
0 |
1652931 |
M |
0 |
|
|
|
|
|
| 1652870 |
1068716 |
product |
0 |
1653108 |
M |
0 |
|
|
|
|
|
| 1654571 |
1070015 |
product |
0 |
1654809 |
M |
0 |
|
|
|
|
|
| 1657036 |
1072191 |
product |
0 |
1657274 |
M |
0 |
|
|
|
|
|
| 1657038 |
1072193 |
product |
0 |
1657276 |
M |
0 |
|
|
|
|
|
| 3947038 |
1731948 |
product |
0 |
3947291 |
M |
0 |
|
|
|
|
|
| 3947040 |
1731949 |
product |
0 |
3947293 |
M |
0 |
|
|
|
|
|