Query time 0.00115
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 ('45888','45889','45890','45891','45892','45893','45894','45895','45896','45897','45898','45899','45900','45901','45902','45903')))",
"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 |
N21247708A_1.jpg |
800 |
1091 |
N |
73613 |
45888 |
product |
75564 |
M |
0 |
|
75564 |
0 |
N21247710A_1.jpg |
800 |
1091 |
N |
73616 |
45889 |
product |
75567 |
M |
0 |
|
75567 |
0 |
N21247711A_1.jpg |
800 |
1091 |
N |
73630 |
45890 |
product |
75581 |
M |
0 |
|
75581 |
0 |
N21247712A_1.jpg |
800 |
1091 |
N |
73633 |
45891 |
product |
75584 |
M |
0 |
|
75584 |
0 |
61AjdKB8GlL._AC_SL1200_.jpg |
1092 |
735 |
N |
73635 |
45893 |
product |
75586 |
M |
0 |
|
75586 |
0 |
71X1P7UhnpL._AC_SL1500_.jpg |
1411 |
859 |
N |
73638 |
45894 |
product |
75589 |
M |
0 |
|
75589 |
0 |
71PG7IpIaIL._AC_SL1500_.jpg |
1341 |
934 |
N |
73641 |
45895 |
product |
75592 |
M |
0 |
|
75592 |
0 |
N21247716A_1.jpg |
800 |
1091 |
N |
73644 |
45896 |
product |
75595 |
M |
0 |
|
75595 |
0 |
41pvpLxpFtL._AC_SL1000_.jpg |
458 |
746 |
N |
73653 |
45899 |
product |
75604 |
M |
0 |
|
75604 |
0 |
517KOQBJOFL._AC_SL1000_.jpg |
434 |
919 |
N |
73664 |
45902 |
product |
75615 |
M |
0 |
|
75615 |
0 |
4.jpg |
640 |
626 |
N |
76927 |
45892 |
product |
78870 |
M |
0 |
|
78870 |
0 |
2_fnex-3c.jpg |
640 |
626 |
N |
77252 |
45900 |
product |
79195 |
M |
0 |
|
79195 |
0 |
4_bgzq-n6.jpg |
640 |
626 |
N |
81388 |
45898 |
product |
83331 |
M |
0 |
|
83331 |
0 |
2_anp1-dj.jpg |
640 |
626 |
N |
81781 |
45897 |
product |
83724 |
M |
0 |
|
83724 |
0 |
2_vgxf-ge.jpg |
640 |
626 |
N |
82521 |
45901 |
product |
84464 |
M |
0 |
|
84464 |
0 |
N23096376A_1.jpg |
800 |
1091 |
N |
73671 |
45903 |
product |
75622 |
M |
2 |
|
75622 |