Query time 0.00787
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.019334463,
"nested_loop": [
{
"read_sorted_file": {
"filesort": {
"sort_key": "tmall_images_links.position, tmall_images_links.pair_id",
"table": {
"table_name": "tmall_images_links",
"access_type": "range",
"possible_keys": ["object_id"],
"key": "object_id",
"key_length": "81",
"used_key_parts": ["object_id", "object_type", "type"],
"loops": 1,
"rows": 3,
"cost": 0.005832833,
"filtered": 100,
"index_condition": "tmall_images_links.object_type = 'logos' and tmall_images_links.`type` = 'M' and tmall_images_links.object_id in (4,5)"
}
}
}
},
{
"table": {
"table_name": "tmall_images",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["image_id"],
"ref": ["tmall.tmall_images_links.image_id"],
"loops": 3,
"rows": 1,
"cost": 0.005801478,
"filtered": 100
}
},
{
"table": {
"table_name": "tmall_common_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "108",
"used_key_parts": ["object_id", "lang_code", "object_holder"],
"ref": ["tmall.tmall_images.image_id", "const", "const"],
"loops": 3,
"rows": 1,
"cost": 0.005801478,
"filtered": 100,
"attached_condition": "trigcond(tmall_common_descriptions.object_holder = 'images' and tmall_common_descriptions.lang_code = 'en' and trigcond(tmall_images.image_id is not null))"
}
}
]
}
}
Result
| image_id |
image_path |
image_x |
image_y |
is_high_res |
cp_in_opt_list |
transparent |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
| 1003 |
cart_1.png |
158 |
25 |
N |
Y |
N |
1 |
4 |
logos |
0 |
M |
0 |
|
1003 |
| 1004 |
invoice_logo_1.png |
176 |
42 |
N |
Y |
N |
2 |
5 |
logos |
0 |
M |
0 |
|
1004 |