Query time 0.00149
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "92.81"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "16.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": 16,
"rows_produced_per_join": 16,
"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 ('10367','10368','10369','10370','10371','10372','10373','10374','10022','10023','10024','10025','10026','10027','10028','10029')))",
"cost_info": {
"read_cost": "35.21",
"eval_cost": "3.20",
"prefix_cost": "38.41",
"data_read_per_join": "1K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "57.61",
"data_read_per_join": "12K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "3.20",
"prefix_cost": "76.81",
"data_read_per_join": "9K"
},
"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 |
61y2V5LB-PL._SL1000_.jpg |
1000 |
1000 |
N |
18497 |
10022 |
product |
20459 |
M |
0 |
|
20459 |
0 |
31dw6nvYrYL.jpg |
500 |
500 |
N |
18504 |
10023 |
product |
20466 |
M |
0 |
|
20466 |
0 |
41VKnp6yCwL._SL1079_.jpg |
1065 |
1079 |
N |
18507 |
10024 |
product |
20469 |
M |
0 |
|
20469 |
0 |
41ldbhj9PSL._SL1068_.jpg |
1068 |
999 |
N |
18511 |
10025 |
product |
20473 |
M |
0 |
|
20473 |
0 |
31DML3u3HGL.jpg |
500 |
372 |
N |
18514 |
10026 |
product |
20476 |
M |
0 |
|
20476 |
0 |
612rG8HLi1L._SL1024_.jpg |
1024 |
1024 |
N |
18518 |
10027 |
product |
20480 |
M |
0 |
|
20480 |
0 |
61g_NBBc6IL._SL1413_.jpg |
1413 |
1410 |
N |
18525 |
10028 |
product |
20487 |
M |
0 |
|
20487 |
0 |
71w8R1Va2XL._SL1500_.jpg |
1446 |
1500 |
N |
18530 |
10029 |
product |
20492 |
M |
0 |
|
20492 |
0 |
41H3wVLGxmL._AC_UL872_SEARCH212385_FMwebp_QL65_.jpg |
275 |
872 |
N |
21088 |
10367 |
product |
23050 |
M |
0 |
|
23050 |
0 |
31GiYUBb-LL.jpg |
500 |
468 |
N |
21092 |
10368 |
product |
23054 |
M |
0 |
|
23054 |
0 |
41sTBU6hgUL.jpg |
500 |
500 |
N |
21098 |
10369 |
product |
23060 |
M |
0 |
|
23060 |
0 |
201711170106471q67i3j2.jpg |
500 |
500 |
N |
21102 |
10370 |
product |
23064 |
M |
0 |
|
23064 |
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 |