Query time 0.00112
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "140.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 ('30926','30927','30928','30929','30931','30932','30933','30934','30936','30937','30939','30940','30941','30942','30943','30947')))",
"cost_info": {
"read_cost": "47.21",
"eval_cost": "5.20",
"prefix_cost": "52.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": "83.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": "114.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 |
712yE9koBjL._SL1000_.jpg |
1000 |
1000 |
N |
48940 |
30929 |
product |
50901 |
M |
0 |
|
50901 |
0 |
61sn8J7IbiL._SL1000_.jpg |
1000 |
1000 |
N |
48941 |
30928 |
product |
50902 |
M |
0 |
|
50902 |
0 |
61yzR0PR2lL._SL1000_.jpg |
1000 |
1000 |
N |
48942 |
30927 |
product |
50903 |
M |
0 |
|
50903 |
0 |
811f-zCm24L._SL1000_.jpg |
1000 |
1000 |
N |
48943 |
30926 |
product |
50904 |
M |
0 |
|
50904 |
0 |
51U3Tg8KXIL._AC_UL436_.jpg |
418 |
436 |
N |
49276 |
30940 |
product |
51237 |
M |
0 |
|
51237 |
0 |
61RnzyYJ8HL._AC_UL436_.jpg |
436 |
436 |
N |
49278 |
30937 |
product |
51239 |
M |
0 |
|
51239 |
0 |
51PUG0-GylL._AC_UL436_.jpg |
436 |
397 |
N |
49282 |
30941 |
product |
51243 |
M |
0 |
|
51243 |
0 |
31UNcrqw2AL._AC_UL436_.jpg |
417 |
436 |
N |
49284 |
30943 |
product |
51245 |
M |
0 |
|
51245 |
0 |
61hTpGyElVL._SL1000_.jpg |
1000 |
1000 |
N |
49546 |
30939 |
product |
51507 |
M |
0 |
|
51507 |
0 |
71JcjaeSI0L._SL1000_.jpg |
1000 |
1000 |
N |
49547 |
30936 |
product |
51508 |
M |
0 |
|
51508 |
0 |
41VEpmsEIUL.jpg |
500 |
500 |
N |
49551 |
30933 |
product |
51512 |
M |
0 |
|
51512 |
0 |
51WKHWIZn2L._SL1000_.jpg |
1000 |
1000 |
N |
49553 |
30932 |
product |
51514 |
M |
0 |
|
51514 |
0 |
2_p0m4-wh.jpg |
640 |
626 |
N |
55212 |
30934 |
product |
57173 |
M |
0 |
|
57173 |
0 |
seed_remover_web.jpg |
640 |
626 |
N |
59420 |
30931 |
product |
61376 |
M |
0 |
|
61376 |
0 |
51crw_9N7OL._SL1024_.jpg |
1024 |
1024 |
N |
65525 |
30947 |
product |
67476 |
M |
0 |
|
67476 |
0 |
2_7ix7-zu.jpg |
640 |
626 |
N |
82356 |
30942 |
product |
84299 |
M |
0 |
|
84299 |