Query time 0.00679
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "187.59"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "36.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": 36,
"rows_produced_per_join": 36,
"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 (480519,596382,697795,1108774,386215,589116,1732209,590365,589122,611344,524885,590294,590359,503738,611343,1114057,611248,1108257,1232917,589813,697874,592084,612918,592827,1232953,589079,697492,1233035,594419,1108259,696364,588450,596346,697773,594204,594003)))",
"cost_info": {
"read_cost": "70.35",
"eval_cost": "3.60",
"prefix_cost": "73.95",
"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": 36,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.53",
"eval_cost": "3.60",
"prefix_cost": "113.07",
"data_read_per_join": "27K"
},
"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": 36,
"filtered": "100.00",
"cost_info": {
"read_cost": "34.92",
"eval_cost": "3.60",
"prefix_cost": "151.59",
"data_read_per_join": "21K"
},
"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 |
| 606158 |
386215 |
product |
0 |
606395 |
M |
0 |
|
|
|
|
|
| 769391 |
480519 |
product |
0 |
769628 |
M |
0 |
|
|
|
|
|
| 787434 |
503738 |
product |
0 |
787671 |
M |
0 |
|
|
|
|
|
| 817200 |
524885 |
product |
0 |
817437 |
M |
0 |
|
|
|
|
|
| 929009 |
588450 |
product |
0 |
929246 |
M |
0 |
|
|
|
|
|
| 929704 |
589079 |
product |
0 |
929941 |
M |
0 |
|
|
|
|
|
| 929743 |
589116 |
product |
0 |
929980 |
M |
0 |
|
|
|
|
|
| 929751 |
589122 |
product |
0 |
929988 |
M |
0 |
|
|
|
|
|
| 930491 |
589813 |
product |
0 |
930728 |
M |
0 |
|
|
|
|
|
| 930981 |
590294 |
product |
0 |
931218 |
M |
0 |
|
|
|
|
|
| 931047 |
590359 |
product |
0 |
931284 |
M |
0 |
|
|
|
|
|
| 931053 |
590365 |
product |
0 |
931290 |
M |
0 |
|
|
|
|
|
| 932858 |
592084 |
product |
0 |
933095 |
M |
0 |
|
|
|
|
|
| 933624 |
592827 |
product |
0 |
933861 |
M |
0 |
|
|
|
|
|
| 934848 |
594003 |
product |
0 |
935085 |
M |
0 |
|
|
|
|
|
| 935055 |
594204 |
product |
0 |
935292 |
M |
0 |
|
|
|
|
|
| 935276 |
594419 |
product |
0 |
935513 |
M |
0 |
|
|
|
|
|
| 937242 |
596346 |
product |
0 |
937479 |
M |
0 |
|
|
|
|
|
| 937284 |
596382 |
product |
0 |
937521 |
M |
0 |
|
|
|
|
|
| 955925 |
611248 |
product |
0 |
956162 |
M |
0 |
|
|
|
|
|
| 956083 |
611343 |
product |
0 |
956320 |
M |
0 |
|
|
|
|
|
| 956084 |
611344 |
product |
0 |
956321 |
M |
0 |
|
|
|
|
|
| 958823 |
612918 |
product |
0 |
959060 |
M |
0 |
|
|
|
|
|
| 1093703 |
696364 |
product |
0 |
1093940 |
M |
0 |
|
|
|
|
|
| 1095428 |
697492 |
product |
0 |
1095665 |
M |
0 |
|
|
|
|
|
| 1095918 |
697795 |
product |
0 |
1096155 |
M |
0 |
|
|
|
|
|
| 1096055 |
697874 |
product |
0 |
1096292 |
M |
0 |
|
|
|
|
|
| 1741451 |
1108257 |
product |
0 |
1741690 |
M |
0 |
|
|
|
|
|
| 1741454 |
1108259 |
product |
0 |
1741693 |
M |
0 |
|
|
|
|
|
| 1742285 |
1108774 |
product |
0 |
1742524 |
M |
0 |
|
|
|
|
|
| 1753520 |
1114057 |
product |
0 |
1753759 |
M |
0 |
|
|
|
|
|
| 1994126 |
1232917 |
product |
0 |
1994378 |
M |
0 |
|
|
|
|
|
| 1994167 |
1232953 |
product |
0 |
1994419 |
M |
0 |
|
|
|
|
|
| 1994258 |
1233035 |
product |
0 |
1994510 |
M |
0 |
|
|
|
|
|
| 3373481 |
697773 |
product |
0 |
3373734 |
M |
0 |
|
|
|
|
|
| 3947439 |
1732209 |
product |
0 |
3947692 |
M |
0 |
|
|
|
|
|