Query time 0.00173
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "55.11"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "24.00"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_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": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"index_condition": "((`testdobroded`.`cscart_images_links`.`object_type` = 'product') and (`testdobroded`.`cscart_images_links`.`type` = 'M') and (`testdobroded`.`cscart_images_links`.`object_id` in (55,1538,56,1539,58,1540,36,1536,65,1542,69,1535,45,1537)))",
"cost_info": {
"read_cost": "11.91",
"eval_cost": "2.40",
"prefix_cost": "14.31",
"data_read_per_join": "2K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "cscart_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"testdobroded.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "2.40",
"prefix_cost": "22.71",
"data_read_per_join": "21K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res",
"uuid"
]
}
},
{
"table": {
"table_name": "cscart_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "108",
"ref": [
"testdobroded.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "6.00",
"eval_cost": "2.40",
"prefix_cost": "31.11",
"data_read_per_join": "14K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
]
}
}
]
}
}
}
Result
| image_id |
image_path |
image_x |
image_y |
is_high_res |
uuid |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
| 0 |
DSC_0531_копия.jpg |
659 |
878 |
N |
|
2953 |
56 |
product |
4235 |
M |
0 |
|
4235 |
| 0 |
DSC_0540_копия.jpg |
659 |
878 |
N |
|
2955 |
65 |
product |
4237 |
M |
0 |
|
4237 |
| 0 |
DSC_0503_копия.jpg |
659 |
878 |
N |
|
2961 |
69 |
product |
4243 |
M |
0 |
|
4243 |
| 0 |
земляника_традиц_1.jpg |
2738 |
3651 |
N |
|
3019 |
55 |
product |
4301 |
M |
0 |
|
4301 |
| 0 |
земляника_традиц_1_x6am-hm.jpg |
2738 |
3651 |
N |
|
3021 |
1538 |
product |
4303 |
M |
0 |
|
4303 |
| 0 |
клюква_традиционная__1.jpg |
2738 |
3651 |
N |
|
3023 |
58 |
product |
4305 |
M |
0 |
|
4305 |
| 0 |
клюква_традиционная__1_brml-ym.jpg |
2738 |
3651 |
N |
|
3025 |
1540 |
product |
4307 |
M |
0 |
|
4307 |
| 0 |
брусника_традиц_1.jpg |
2738 |
3651 |
N |
|
3027 |
45 |
product |
4309 |
M |
0 |
|
4309 |
| 0 |
брусника_традиц_1_q1g9-os.jpg |
2738 |
3651 |
N |
|
3029 |
1537 |
product |
4311 |
M |
0 |
|
4311 |
| 0 |
черника_традиц_1.jpg |
2738 |
3651 |
N |
|
3112 |
1535 |
product |
4394 |
M |
0 |
|
4394 |
| 0 |
облепиха_традиц_1.jpg |
2738 |
3651 |
N |
|
3114 |
1542 |
product |
4396 |
M |
0 |
|
4396 |
| 0 |
лимон_имбирь_1.jpg |
2738 |
3651 |
N |
|
3118 |
1539 |
product |
4400 |
M |
0 |
|
4400 |
| 0 |
вишня_классик_1__1__y8om-ix.jpg |
2738 |
3651 |
N |
|
3126 |
1536 |
product |
4408 |
M |
0 |
|
4408 |
| 0 |
вишня_классик_1__1_.jpg |
2738 |
3651 |
N |
|
3124 |
36 |
product |
4406 |
M |
1 |
|
4406 |