Query time 0.00172
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "147.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "26.00"
},
"nested_loop": [
{
"table": {
"table_name": "q_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": 26,
"rows_produced_per_join": 26,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'M') and (`portal`.`q_images_links`.`object_id` in ('45784','45785','45787','45811','45812','45822','45823','45824','45825','45826','45830','45714','45715','45720','45725','45727','45733','45746','45749','45756','45764','45765','45768')))",
"cost_info": {
"read_cost": "54.21",
"eval_cost": "5.20",
"prefix_cost": "59.41",
"data_read_per_join": "2K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "q_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"portal.q_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "90.61",
"data_read_per_join": "19K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "q_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"portal.q_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 26,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.00",
"eval_cost": "5.20",
"prefix_cost": "121.81",
"data_read_per_join": "15K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_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 |
71-AuEeTmkL._AC_SL1500_.jpg |
1500 |
784 |
N |
72759 |
45715 |
product |
74710 |
M |
0 |
|
74710 |
0 |
A1LyjISyfqL._AC_SL1500_.jpg |
1500 |
1000 |
N |
72785 |
45746 |
product |
74736 |
M |
0 |
|
74736 |
0 |
58224-Bestway.jpg |
666 |
500 |
N |
73176 |
45784 |
product |
75127 |
M |
0 |
|
75127 |
0 |
67434.jpg |
1000 |
1000 |
N |
73178 |
45785 |
product |
75129 |
M |
0 |
|
75129 |
0 |
bestway_web.jpg |
640 |
626 |
N |
73958 |
45714 |
product |
75903 |
M |
0 |
|
75903 |
0 |
41zWjFf5CZL._AC__7mfi-h5.jpg |
385 |
471 |
N |
74098 |
45725 |
product |
76041 |
M |
0 |
|
76041 |
0 |
1875744427_w640_h640_naduvnoj-matras-krovat-bestway_55q4-ia.jpg |
500 |
500 |
N |
74100 |
45727 |
product |
76043 |
M |
0 |
|
76043 |
0 |
71I4hdks_HL._AC_SL1500_.jpg |
1500 |
814 |
N |
75322 |
45822 |
product |
77265 |
M |
0 |
|
77265 |
0 |
61a0zh1XL9L._SL1500_.jpg |
1500 |
997 |
N |
75328 |
45823 |
product |
77271 |
M |
0 |
|
77271 |
0 |
21v70YJ6swL._AC_.jpg |
300 |
148 |
N |
75330 |
45824 |
product |
77273 |
M |
0 |
|
77273 |
0 |
91Mr2-F5KWL._AC_SL1500_.jpg |
1084 |
1500 |
N |
75331 |
45825 |
product |
77274 |
M |
0 |
|
77274 |
0 |
41Qqhw6Ic3L._AC_SY400_.jpg |
500 |
367 |
N |
75356 |
45720 |
product |
77299 |
M |
0 |
|
77299 |
0 |
b32c5f4bc742a47a2c0036ac609084840018ed80.jpg |
768 |
800 |
N |
75365 |
45733 |
product |
77308 |
M |
0 |
|
77308 |
0 |
de57885800a4f7eee28499b13555a502.jpg |
434 |
365 |
N |
75442 |
45764 |
product |
77385 |
M |
0 |
|
77385 |
0 |
s-l300.jpg |
257 |
300 |
N |
75455 |
45768 |
product |
77398 |
M |
0 |
|
77398 |
0 |
91JSLT4UP6L._AC_SL1500_.jpg |
1500 |
1000 |
N |
75466 |
45830 |
product |
77409 |
M |
0 |
|
77409 |
0 |
81RzUA2-3VL._SL1500_.jpg |
1083 |
1500 |
N |
75483 |
45826 |
product |
77426 |
M |
0 |
|
77426 |
0 |
bestway_68047.jpg |
1200 |
1200 |
N |
75501 |
45812 |
product |
77444 |
M |
0 |
|
77444 |
0 |
gv_5922e6145b616_xl.jpg |
1200 |
791 |
N |
75502 |
45811 |
product |
77445 |
M |
0 |
|
77445 |
0 |
2_fp6f-wp.jpg |
640 |
626 |
N |
77249 |
45787 |
product |
79192 |
M |
0 |
|
79192 |
0 |
67496_168665_1.jpeg |
920 |
920 |
N |
78430 |
45749 |
product |
80373 |
M |
0 |
|
80373 |
0 |
2_do3y-79.jpg |
640 |
626 |
N |
82121 |
45765 |
product |
84064 |
M |
0 |
|
84064 |
0 |
2__16_.jpg |
640 |
626 |
N |
82172 |
45756 |
product |
84115 |
M |
0 |
|
84115 |