Query time 0.00092
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "62.22"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "17.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": [
"object_id",
"idx_object_type_type_position"
],
"key": "object_id",
"used_key_parts": [
"object_id",
"object_type",
"type"
],
"key_length": "81",
"rows_examined_per_scan": 17,
"rows_produced_per_join": 17,
"filtered": "100.00",
"index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'M') and (`cscart_db`.`cscart_images_links`.`object_id` in (9545,9544,13146,13132,13133,13134,13136,13144,15999,16001,16000,69464,69465,69467,69466,69469,69468)))",
"cost_info": {
"read_cost": "24.16",
"eval_cost": "1.70",
"prefix_cost": "25.86",
"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": "4",
"ref": [
"cscart_db.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.74",
"eval_cost": "1.70",
"prefix_cost": "36.30",
"data_read_per_join": "13K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
]
}
},
{
"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": [
"cscart_db.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 17,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.22",
"eval_cost": "1.70",
"prefix_cost": "45.22",
"data_read_per_join": "10K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`cscart_db`.`cscart_common_descriptions`.`object_id` = `cscart_db`.`cscart_images`.`image_id`), true)"
}
}
]
}
}
}
Result
| image_id |
image_path |
image_x |
image_y |
is_high_res |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
| 0 |
1_w1xk-4m.png |
1500 |
1291 |
N |
46652 |
13132 |
product |
48004 |
M |
0 |
|
48004 |
| 0 |
1_q8d9-xw.png |
1500 |
1291 |
N |
46659 |
13133 |
product |
48011 |
M |
0 |
|
48011 |
| 0 |
1_8vem-nh.png |
1500 |
1291 |
N |
46666 |
13134 |
product |
48018 |
M |
0 |
|
48018 |
| 0 |
1_jayn-ke.png |
1500 |
1291 |
N |
46680 |
13136 |
product |
48032 |
M |
0 |
|
48032 |
| 0 |
10.1.webp |
1080 |
1080 |
N |
46778 |
13146 |
product |
48130 |
M |
0 |
|
48130 |
| 0 |
main_fut1-wx.jpg |
1080 |
1080 |
N |
58580 |
15999 |
product |
59932 |
M |
0 |
|
59932 |
| 0 |
main_q7x4-cj.jpg |
1080 |
1080 |
N |
58588 |
16000 |
product |
59940 |
M |
0 |
|
59940 |
| 0 |
main_05q3-x3.jpg |
1080 |
1080 |
N |
58596 |
16001 |
product |
59948 |
M |
0 |
|
59948 |
| 0 |
2.1_1xg1-0i.webp |
687 |
687 |
N |
65217 |
9544 |
product |
66569 |
M |
0 |
|
66569 |
| 0 |
You_Go_Girl_002-1000x1000.jpg |
1000 |
1000 |
N |
75382 |
13144 |
product |
76734 |
M |
0 |
|
76734 |
| 0 |
uc_5suj-2i.jpg |
4234 |
5006 |
N |
207855 |
69464 |
product |
209130 |
M |
0 |
|
209130 |
| 0 |
uc_l7qz-vc.jpg |
4234 |
5006 |
N |
207870 |
69465 |
product |
209145 |
M |
0 |
|
209145 |
| 0 |
uc_rmpv-2f.jpg |
4234 |
5006 |
N |
207885 |
69466 |
product |
209160 |
M |
0 |
|
209160 |
| 0 |
uc_evnr-le.jpg |
4234 |
5006 |
N |
207900 |
69467 |
product |
209175 |
M |
0 |
|
209175 |
| 0 |
uc_4cn8-10.jpg |
4234 |
5006 |
N |
207915 |
69468 |
product |
209190 |
M |
0 |
|
209190 |
| 0 |
uc_jzs3-87.jpg |
4058 |
4251 |
N |
207930 |
69469 |
product |
209205 |
M |
0 |
|
209205 |
| 0 |
1.1_y23j-1u.webp |
707 |
704 |
N |
65211 |
9545 |
product |
66563 |
M |
1 |
|
66563 |