Query time 0.00111
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 ('30319','30320','30321','30322','30323','30324','30325','30326','30327','30328','30329','30330','30331','30333','30334','30335')))",
"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 |
41Z4Pqn1fBL._AC_UL320_.jpg |
320 |
320 |
N |
48571 |
30334 |
product |
50532 |
M |
0 |
|
50532 |
0 |
81VrAnft63L._AC_UL320_.jpg |
213 |
320 |
N |
48572 |
30333 |
product |
50533 |
M |
0 |
|
50533 |
0 |
61_0nnnEs7L._AC_UL320_.jpg |
223 |
320 |
N |
48579 |
30330 |
product |
50540 |
M |
0 |
|
50540 |
0 |
61uqonDWjiL._AC_UL320_.jpg |
121 |
320 |
N |
48623 |
30327 |
product |
50584 |
M |
0 |
|
50584 |
0 |
61zB7uVxU1L._AC_UL320_.jpg |
145 |
320 |
N |
48625 |
30326 |
product |
50586 |
M |
0 |
|
50586 |
0 |
616k1Fz_vJL._AC_UL320_.jpg |
217 |
320 |
N |
48627 |
30325 |
product |
50588 |
M |
0 |
|
50588 |
0 |
61vr4HrsObL._AC_UL320_.jpg |
221 |
320 |
N |
48633 |
30323 |
product |
50594 |
M |
0 |
|
50594 |
0 |
41GAb0hxi4L._AC_UL320_.jpg |
320 |
320 |
N |
48636 |
30322 |
product |
50597 |
M |
0 |
|
50597 |
0 |
download__11_.jpg |
342 |
342 |
N |
48719 |
30320 |
product |
50680 |
M |
0 |
|
50680 |
0 |
41IC0X5GTmL._SX425_.jpg |
425 |
425 |
N |
48723 |
30321 |
product |
50684 |
M |
0 |
|
50684 |
0 |
51Ns6rQUK3L.jpg |
489 |
500 |
N |
49003 |
30328 |
product |
50964 |
M |
0 |
|
50964 |
0 |
shirt.jpg |
640 |
626 |
N |
51305 |
30331 |
product |
53266 |
M |
0 |
|
53266 |
0 |
51bZch7ihiL._SX466_.jpg |
466 |
466 |
N |
65492 |
30324 |
product |
67443 |
M |
0 |
|
67443 |
0 |
41GYrhcHQ_L.jpg |
500 |
500 |
N |
65493 |
30335 |
product |
67444 |
M |
0 |
|
67444 |
0 |
71_dptVNJ4L._SL1323_.jpg |
1323 |
1323 |
N |
52747 |
30319 |
product |
54708 |
M |
1 |
|
54708 |