Query time 0.00395
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "169.48"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "32.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": 32,
"rows_produced_per_join": 32,
"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 (386230,1026757,671515,1001748,1002989,1026639,1026634,1028815,1029088,459108,562176,1205512,1779540,1914195,1029029,1026067,999679,1006064,1028861,1005469,1005477,1329210,1001621,1028489,1051465,1051466,1000770,1026826,1000893,1005493,1005777,1000273)))",
"cost_info": {
"read_cost": "64.36",
"eval_cost": "3.20",
"prefix_cost": "67.56",
"data_read_per_join": "3K"
},
"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": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "31.87",
"eval_cost": "3.20",
"prefix_cost": "102.64",
"data_read_per_join": "24K"
},
"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": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "31.65",
"eval_cost": "3.20",
"prefix_cost": "137.48",
"data_read_per_join": "19K"
},
"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 |
| 606222 |
386230 |
product |
0 |
606459 |
M |
0 |
|
|
|
|
|
| 721305 |
459108 |
product |
0 |
721542 |
M |
0 |
|
|
|
|
|
| 885129 |
562176 |
product |
0 |
885366 |
M |
0 |
|
|
|
|
|
| 1051185 |
671515 |
product |
0 |
1051422 |
M |
0 |
|
|
|
|
|
| 1549727 |
999679 |
product |
0 |
1549964 |
M |
0 |
|
|
|
|
|
| 1550321 |
1000273 |
product |
0 |
1550558 |
M |
0 |
|
|
|
|
|
| 1550818 |
1000770 |
product |
0 |
1551055 |
M |
0 |
|
|
|
|
|
| 1550941 |
1000893 |
product |
0 |
1551178 |
M |
0 |
|
|
|
|
|
| 1551669 |
1001621 |
product |
0 |
1551906 |
M |
0 |
|
|
|
|
|
| 1551796 |
1001748 |
product |
0 |
1552033 |
M |
0 |
|
|
|
|
|
| 1553061 |
1002989 |
product |
0 |
1553298 |
M |
0 |
|
|
|
|
|
| 1555548 |
1005469 |
product |
0 |
1555785 |
M |
0 |
|
|
|
|
|
| 1555556 |
1005477 |
product |
0 |
1555793 |
M |
0 |
|
|
|
|
|
| 1555572 |
1005493 |
product |
0 |
1555809 |
M |
0 |
|
|
|
|
|
| 1555856 |
1005777 |
product |
0 |
1556093 |
M |
0 |
|
|
|
|
|
| 1556143 |
1006064 |
product |
0 |
1556380 |
M |
0 |
|
|
|
|
|
| 1581160 |
1026067 |
product |
0 |
1581397 |
M |
0 |
|
|
|
|
|
| 1581761 |
1026634 |
product |
0 |
1581998 |
M |
0 |
|
|
|
|
|
| 1581768 |
1026639 |
product |
0 |
1582005 |
M |
0 |
|
|
|
|
|
| 1581905 |
1026757 |
product |
0 |
1582142 |
M |
0 |
|
|
|
|
|
| 1581978 |
1026826 |
product |
0 |
1582215 |
M |
0 |
|
|
|
|
|
| 1583956 |
1028489 |
product |
0 |
1584193 |
M |
0 |
|
|
|
|
|
| 1584282 |
1028815 |
product |
0 |
1584519 |
M |
0 |
|
|
|
|
|
| 1584328 |
1028861 |
product |
0 |
1584565 |
M |
0 |
|
|
|
|
|
| 1584496 |
1029029 |
product |
0 |
1584733 |
M |
0 |
|
|
|
|
|
| 1584555 |
1029088 |
product |
0 |
1584792 |
M |
0 |
|
|
|
|
|
| 1615959 |
1051465 |
product |
0 |
1616196 |
M |
0 |
|
|
|
|
|
| 1615960 |
1051466 |
product |
0 |
1616197 |
M |
0 |
|
|
|
|
|
| 1939385 |
1205512 |
product |
0 |
1939637 |
M |
0 |
|
|
|
|
|
| 2190464 |
1329210 |
product |
0 |
2190716 |
M |
0 |
|
|
|
|
|
| 4164974 |
1779540 |
product |
0 |
4165227 |
M |
0 |
|
|
|
|
|
| 4624800 |
1914195 |
product |
0 |
4625053 |
M |
0 |
|
|
|
|
|