Query time 0.00098
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": 4,
"filtered": 100,
"index_condition": "cscart_images_links.object_type = 'product' and cscart_images_links.`type` = 'M' and cscart_images_links.object_id in (1157,1156,1158,1159)"
}
}
},
"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 |
a2b123dad530bcbc61ed1e1ff7e57204.jpg |
1280 |
519 |
N |
|
5031 |
1156 |
product |
3239 |
M |
0 |
|
3239 |
| 0 |
d9c504e0584d67a3895140c1d7bd9ece.jpg |
1280 |
520 |
N |
|
5032 |
1157 |
product |
3240 |
M |
0 |
|
3240 |
| 0 |
f04b60aba4f37c357ca8b1b4783f8ba8.jpg |
1280 |
519 |
N |
|
5033 |
1158 |
product |
3241 |
M |
0 |
|
3241 |
| 0 |
2cde5b5b84e379f315fced884e1ca4d9.jpg |
1280 |
513 |
N |
|
5034 |
1159 |
product |
3242 |
M |
0 |
|
3242 |