Query time 0.00107
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "106.57"
},
"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` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'M') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (1437277,1903062,1128285,480519,447578,522515,241391,1118346,1128289,687122,897024,1129605,447588,1274272,481220,1080078,596382,444124,1108774,697795)))",
"cost_info": {
"read_cost": "40.68",
"eval_cost": "2.00",
"prefix_cost": "42.68",
"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.96",
"eval_cost": "2.00",
"prefix_cost": "64.64",
"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.94",
"eval_cost": "2.00",
"prefix_cost": "86.57",
"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 |
| 400980 |
241391 |
product |
0 |
401217 |
M |
0 |
|
|
|
|
|
| 704517 |
444124 |
product |
0 |
704754 |
M |
0 |
|
|
|
|
|
| 707828 |
447578 |
product |
0 |
708065 |
M |
0 |
|
|
|
|
|
| 707893 |
447588 |
product |
0 |
708130 |
M |
0 |
|
|
|
|
|
| 751363 |
481220 |
product |
0 |
751600 |
M |
0 |
|
|
|
|
|
| 769391 |
480519 |
product |
0 |
769628 |
M |
0 |
|
|
|
|
|
| 814650 |
522515 |
product |
0 |
814887 |
M |
0 |
|
|
|
|
|
| 937284 |
596382 |
product |
0 |
937521 |
M |
0 |
|
|
|
|
|
| 1080520 |
687122 |
product |
0 |
1080757 |
M |
0 |
|
|
|
|
|
| 1095918 |
697795 |
product |
0 |
1096155 |
M |
0 |
|
|
|
|
|
| 1394412 |
897024 |
product |
0 |
1394649 |
M |
0 |
|
|
|
|
|
| 1669612 |
1080078 |
product |
0 |
1669850 |
M |
0 |
|
|
|
|
|
| 1742285 |
1108774 |
product |
0 |
1742524 |
M |
0 |
|
|
|
|
|
| 1789076 |
1128285 |
product |
0 |
1789325 |
M |
0 |
|
|
|
|
|
| 1792593 |
1128289 |
product |
0 |
1792842 |
M |
0 |
|
|
|
|
|
| 1793262 |
1129605 |
product |
0 |
1793511 |
M |
0 |
|
|
|
|
|
| 1912969 |
1118346 |
product |
0 |
1913221 |
M |
0 |
|
|
|
|
|
| 2069017 |
1274272 |
product |
0 |
2069269 |
M |
0 |
|
|
|
|
|
| 2615564 |
1437277 |
product |
0 |
2615817 |
M |
0 |
|
|
|
|
|
| 4593943 |
1903062 |
product |
0 |
4594196 |
M |
0 |
|
|
|
|
|