Query time 0.00198
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "270.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "50.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": 50,
"rows_produced_per_join": 50,
"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 ('29282','29283','29314','29341','29690','29694','29702','29799','30319','30339','30770','30781','30782','30783','30787','30794','30799','30815','30860','30873','30876','30899','30911','30920','30931','30937','30939','30943','30957','30972')))",
"cost_info": {
"read_cost": "90.01",
"eval_cost": "10.00",
"prefix_cost": "100.01",
"data_read_per_join": "4K"
},
"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": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "50.00",
"eval_cost": "10.00",
"prefix_cost": "160.01",
"data_read_per_join": "38K"
},
"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": 50,
"filtered": "100.00",
"cost_info": {
"read_cost": "50.00",
"eval_cost": "10.00",
"prefix_cost": "220.01",
"data_read_per_join": "29K"
},
"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 |
51N97JXNnwL._SL1001_.jpg |
1001 |
1001 |
N |
44964 |
29341 |
product |
46926 |
M |
0 |
|
46926 |
0 |
61AVdJm4maL._SL1500_.jpg |
1500 |
1500 |
N |
45152 |
29314 |
product |
47114 |
M |
0 |
|
47114 |
0 |
41cdb0ACigL.jpg |
500 |
500 |
N |
45178 |
29282 |
product |
47140 |
M |
0 |
|
47140 |
0 |
513sj-1hPFL.jpg |
461 |
500 |
N |
45750 |
29702 |
product |
47712 |
M |
0 |
|
47712 |
0 |
317BnlK1lNL.jpg |
500 |
492 |
N |
45893 |
29694 |
product |
47855 |
M |
0 |
|
47855 |
0 |
510_nlnlI5L._SL1001_.jpg |
1001 |
1001 |
N |
45953 |
29690 |
product |
47915 |
M |
0 |
|
47915 |
0 |
weight_kitchen.jpg |
640 |
626 |
N |
48254 |
29283 |
product |
50215 |
M |
0 |
|
50215 |
0 |
61XrRBOmhcL._SL1024_.jpg |
1024 |
1024 |
N |
48760 |
30783 |
product |
50721 |
M |
0 |
|
50721 |
0 |
71u9u7S2ESL._SL1000_.jpg |
1000 |
1000 |
N |
48762 |
30782 |
product |
50723 |
M |
0 |
|
50723 |
0 |
41YRB5l7aQL._SL1000_.jpg |
1000 |
1000 |
N |
48763 |
30781 |
product |
50724 |
M |
0 |
|
50724 |
0 |
51-WtFlRcmL._SL1001_.jpg |
1001 |
1001 |
N |
48780 |
30770 |
product |
50741 |
M |
0 |
|
50741 |
0 |
61_KDsNsZrL._SL1000_.jpg |
1000 |
999 |
N |
48873 |
30876 |
product |
50834 |
M |
0 |
|
50834 |
0 |
61RnzyYJ8HL._AC_UL436_.jpg |
436 |
436 |
N |
49278 |
30937 |
product |
51239 |
M |
0 |
|
51239 |
0 |
31UNcrqw2AL._AC_UL436_.jpg |
417 |
436 |
N |
49284 |
30943 |
product |
51245 |
M |
0 |
|
51245 |
0 |
61oL7dIF7iL._SL1000_.jpg |
1000 |
1000 |
N |
49339 |
30787 |
product |
51300 |
M |
0 |
|
51300 |
0 |
71btmn_bbgL._SL1000_.jpg |
1000 |
1000 |
N |
49457 |
30815 |
product |
51418 |
M |
0 |
|
51418 |
0 |
51qLuePtm9L._SL1000_.jpg |
1000 |
1000 |
N |
49488 |
30799 |
product |
51449 |
M |
0 |
|
51449 |
0 |
4148ai0EmcL.jpg |
500 |
500 |
N |
49527 |
30957 |
product |
51488 |
M |
0 |
|
51488 |
0 |
61hTpGyElVL._SL1000_.jpg |
1000 |
1000 |
N |
49546 |
30939 |
product |
51507 |
M |
0 |
|
51507 |
0 |
510k4MU0G2L._SL1000_.jpg |
1000 |
1000 |
N |
49571 |
30899 |
product |
51532 |
M |
0 |
|
51532 |
0 |
51PRk8kY7cL._SL1001_.jpg |
1001 |
1001 |
N |
49661 |
30972 |
product |
51622 |
M |
0 |
|
51622 |
0 |
coffee_whisk.jpg |
640 |
626 |
N |
50990 |
30860 |
product |
52951 |
M |
0 |
|
52951 |
0 |
seed_remover_web.jpg |
640 |
626 |
N |
59420 |
30931 |
product |
61376 |
M |
0 |
|
61376 |
0 |
61LcMsYvsaL._SL1000_.jpg |
1000 |
1000 |
N |
65495 |
30339 |
product |
67446 |
M |
0 |
|
67446 |
0 |
2_be8u-tf.jpg |
640 |
626 |
N |
81829 |
30920 |
product |
83772 |
M |
0 |
|
83772 |
0 |
2_lnso-bx.jpg |
640 |
626 |
N |
82127 |
29799 |
product |
84070 |
M |
0 |
|
84070 |
0 |
2_y3ko-8x.jpg |
640 |
626 |
N |
82421 |
30911 |
product |
84364 |
M |
0 |
|
84364 |
0 |
2_coc5-s2.jpg |
640 |
626 |
N |
82951 |
30794 |
product |
84894 |
M |
0 |
|
84894 |
0 |
61JE2j2YqJL._SL1000_.jpg |
1000 |
1000 |
N |
48880 |
30873 |
product |
50841 |
M |
1 |
|
50841 |
0 |
71_dptVNJ4L._SL1323_.jpg |
1323 |
1323 |
N |
52747 |
30319 |
product |
54708 |
M |
1 |
|
54708 |