Query time 0.00065
JSON explain
{
"query_block": {
"select_id": 1,
"read_sorted_file": {
"filesort": {
"sort_key": "cscart_images_links.position, cscart_images_links.pair_id",
"table": {
"table_name": "cscart_images_links",
"access_type": "range",
"possible_keys": ["object_id"],
"key": "object_id",
"key_length": "81",
"used_key_parts": ["object_id", "object_type", "type"],
"rows": 6,
"filtered": 100,
"index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'M' and cscart_images_links.object_id in (556,552,560,551,549,547)"
}
}
},
"table": {
"table_name": "cscart_images",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["image_id"],
"ref": ["noframes_kz_new.cscart_images_links.detailed_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_images_links.detailed_id = cscart_images.image_id)"
},
"table": {
"table_name": "cscart_common_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "107",
"used_key_parts": ["object_id", "lang_code", "object_holder"],
"ref": ["noframes_kz_new.cscart_images.image_id", "const", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_common_descriptions.object_id = cscart_images.image_id and cscart_common_descriptions.object_holder = 'images' and cscart_common_descriptions.lang_code = 'ru' and trigcond(cscart_images.image_id is not null))"
}
}
}
Result
| image_id |
image_path |
image_x |
image_y |
is_high_res |
rf_original |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
| 0 |
883db372af9299dcc826668a69b5b5e0.jpg |
980 |
653 |
N |
|
4417 |
547 |
product |
2625 |
M |
0 |
|
2625 |
| 0 |
3cc954d2761edfb7aeda404149e0a141.jpg |
980 |
653 |
N |
|
4419 |
549 |
product |
2627 |
M |
0 |
|
2627 |
| 0 |
259f1011e24605527b618531f412a47c.jpg |
980 |
653 |
N |
|
4421 |
551 |
product |
2629 |
M |
0 |
|
2629 |
| 0 |
c98c39d5b8bc46682491b0bccda163c1.jpg |
980 |
653 |
N |
|
4422 |
552 |
product |
2630 |
M |
0 |
|
2630 |
| 0 |
84df43bf2f3b5767f7a3e51e3308893b.jpg |
980 |
653 |
N |
|
4426 |
556 |
product |
2634 |
M |
0 |
|
2634 |
| 0 |
a025ed11c3b15d98f3f7816a1f2a688d.jpg |
980 |
653 |
N |
|
4430 |
560 |
product |
2638 |
M |
0 |
|
2638 |