Query time 0.00518
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "253.05"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "50.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": 50,
"rows_produced_per_join": 50,
"filtered": "100.00",
"index_condition": "((`maniamall_cscart`.`cscart_images_links`.`object_type` = 'product') and (`maniamall_cscart`.`cscart_images_links`.`type` = 'A') and (`maniamall_cscart`.`cscart_images_links`.`object_id` in (1233012,1067180,696234,591722,589214,1067678,1033163,992088,1730410,614833,600286,588439,588446,589740,697903,1067318,1025367,695078,1233020,599887,1067521,588910,612038,991897,590755,1025365,622101,1120163,697332,697155,1073044,591218,1070391,593887,697609,991976)))",
"cost_info": {
"read_cost": "88.69",
"eval_cost": "5.00",
"prefix_cost": "93.69",
"data_read_per_join": "4K"
},
"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": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "49.84",
"eval_cost": "5.00",
"prefix_cost": "148.52",
"data_read_per_join": "38K"
},
"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": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "49.53",
"eval_cost": "5.00",
"prefix_cost": "203.05",
"data_read_per_join": "29K"
},
"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 |
| 944399 |
599887 |
product |
0 |
944636 |
A |
0 |
|
|
|
|
|
| 944400 |
599887 |
product |
0 |
944637 |
A |
0 |
|
|
|
|
|
| 945293 |
600286 |
product |
0 |
945530 |
A |
0 |
|
|
|
|
|
| 957412 |
612038 |
product |
0 |
957649 |
A |
0 |
|
|
|
|
|
| 977159 |
622101 |
product |
0 |
977396 |
A |
0 |
|
|
|
|
|
| 977160 |
622101 |
product |
0 |
977397 |
A |
0 |
|
|
|
|
|
| 977161 |
622101 |
product |
0 |
977398 |
A |
0 |
|
|
|
|
|
| 977162 |
622101 |
product |
0 |
977399 |
A |
0 |
|
|
|
|
|
| 977163 |
622101 |
product |
0 |
977400 |
A |
0 |
|
|
|
|
|
| 977164 |
622101 |
product |
0 |
977401 |
A |
0 |
|
|
|
|
|
| 1093477 |
696234 |
product |
0 |
1093714 |
A |
0 |
|
|
|
|
|
| 1094907 |
697155 |
product |
0 |
1095144 |
A |
0 |
|
|
|
|
|
| 1095181 |
697332 |
product |
0 |
1095418 |
A |
0 |
|
|
|
|
|
| 1095636 |
697609 |
product |
0 |
1095873 |
A |
0 |
|
|
|
|
|
| 1096106 |
697903 |
product |
0 |
1096343 |
A |
0 |
|
|
|
|
|
| 1540894 |
992088 |
product |
0 |
1541131 |
A |
0 |
|
|
|
|
|
| 1770566 |
1120163 |
product |
0 |
1770805 |
A |
0 |
|
|
|
|
|
| 1770567 |
1120163 |
product |
0 |
1770806 |
A |
0 |
|
|
|
|
|
| 3941947 |
1730410 |
product |
0 |
3942200 |
A |
0 |
|
|
|
|
|
| 3941948 |
1730410 |
product |
0 |
3942201 |
A |
0 |
|
|
|
|
|
| 3941949 |
1730410 |
product |
0 |
3942202 |
A |
0 |
|
|
|
|
|
| 3941950 |
1730410 |
product |
0 |
3942203 |
A |
0 |
|
|
|
|
|
| 3941951 |
1730410 |
product |
0 |
3942204 |
A |
0 |
|
|
|
|
|
| 3941952 |
1730410 |
product |
0 |
3942205 |
A |
0 |
|
|
|
|
|
| 3941953 |
1730410 |
product |
0 |
3942206 |
A |
0 |
|
|
|
|
|
| 3941954 |
1730410 |
product |
0 |
3942207 |
A |
0 |
|
|
|
|
|