Query time 0.00213
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "150.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 ('10514','10341','10353','10366','10367','10371','10372','10373','10374','10022','10026','10031','10033','10035','10036','10037','10038','10041','10042','10045','10046','10048','10051','8682','8214','4584')))",
"cost_info": {
"read_cost": "57.21",
"eval_cost": "5.20",
"prefix_cost": "62.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": "93.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": "124.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 |
41t0RFx7WfL.jpg |
500 |
500 |
N |
17145 |
8214 |
product |
19107 |
M |
0 |
|
19107 |
0 |
61qLM5s6buL._SX569_.jpg |
569 |
569 |
N |
18184 |
8682 |
product |
20146 |
M |
0 |
|
20146 |
0 |
61y2V5LB-PL._SL1000_.jpg |
1000 |
1000 |
N |
18497 |
10022 |
product |
20459 |
M |
0 |
|
20459 |
0 |
31DML3u3HGL.jpg |
500 |
372 |
N |
18514 |
10026 |
product |
20476 |
M |
0 |
|
20476 |
0 |
41iQ33JAALL.jpg |
500 |
500 |
N |
18539 |
10031 |
product |
20501 |
M |
0 |
|
20501 |
0 |
61yEbHYPNCL._SL1354_.jpg |
1354 |
1354 |
N |
18553 |
10035 |
product |
20515 |
M |
0 |
|
20515 |
0 |
412U9oM498L.jpg |
500 |
500 |
N |
18558 |
10036 |
product |
20520 |
M |
0 |
|
20520 |
0 |
51kbS90gKCL.jpg |
500 |
500 |
N |
18559 |
10037 |
product |
20521 |
M |
0 |
|
20521 |
0 |
61s0quI2ADL._SL1000_.jpg |
1000 |
1000 |
N |
18560 |
10038 |
product |
20522 |
M |
0 |
|
20522 |
0 |
71HrKG1LjYL._SL1500_.jpg |
1500 |
773 |
N |
18571 |
10042 |
product |
20533 |
M |
0 |
|
20533 |
0 |
41gmGrw329L.jpg |
425 |
500 |
N |
18591 |
10048 |
product |
20553 |
M |
0 |
|
20553 |
0 |
317CyKheacL._AC_UL872_SEARCH212385_FMwebp_QL65_.jpg |
605 |
872 |
N |
20995 |
10341 |
product |
22957 |
M |
0 |
|
22957 |
0 |
31TClwuRRyL._AC_UL872_SEARCH212385_FMwebp_QL65_.jpg |
872 |
584 |
N |
21045 |
10353 |
product |
23007 |
M |
0 |
|
23007 |
0 |
51QGdqkeSbL._AC_UL872_SEARCH212385_FMwebp_QL65_.jpg |
565 |
872 |
N |
21087 |
10366 |
product |
23049 |
M |
0 |
|
23049 |
0 |
41H3wVLGxmL._AC_UL872_SEARCH212385_FMwebp_QL65_.jpg |
275 |
872 |
N |
21088 |
10367 |
product |
23050 |
M |
0 |
|
23050 |
0 |
41qfIGMbuPL.jpg |
500 |
500 |
N |
21107 |
10371 |
product |
23069 |
M |
0 |
|
23069 |
0 |
617n0LICG2L._SX522_.jpg |
522 |
522 |
N |
21109 |
10372 |
product |
23071 |
M |
0 |
|
23071 |
0 |
615iIUy0vOL._SX522_.jpg |
522 |
522 |
N |
21112 |
10373 |
product |
23074 |
M |
0 |
|
23074 |
0 |
51jvAyHFlXL._SX522_.jpg |
522 |
522 |
N |
21116 |
10374 |
product |
23078 |
M |
0 |
|
23078 |
0 |
415QWbXQ7hL._SX342__u6b3-zc.jpg |
342 |
342 |
N |
21525 |
10514 |
product |
23487 |
M |
0 |
|
23487 |
0 |
mi-bluetooth-headset-basic-black.jpg |
800 |
800 |
N |
22645 |
10045 |
product |
24607 |
M |
0 |
|
24607 |
0 |
xiaomi_amazfit.jpg |
640 |
626 |
N |
37315 |
10033 |
product |
39277 |
M |
0 |
|
39277 |
0 |
item_XXL_28942637_85003857.jpg |
344 |
408 |
N |
83961 |
4584 |
product |
13361 |
M |
0 |
|
13361 |
0 |
41Dwb2Usf7L_t897-w4.jpg |
500 |
500 |
N |
85016 |
10051 |
product |
20619 |
M |
0 |
|
20619 |
0 |
51wLcudizWL._SL1000__2va5-hj.jpg |
1000 |
1000 |
N |
85022 |
10046 |
product |
20634 |
M |
0 |
|
20634 |
0 |
mi_speaker_web.jpg |
640 |
626 |
N |
85025 |
10041 |
product |
57231 |
M |
0 |
|
57231 |