Query time 0.00084
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "21.36"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "9.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": 9,
"rows_produced_per_join": 9,
"filtered": "100.00",
"index_condition": "((`test_uchur_k`.`cscart_images_links`.`object_type` = 'product') and (`test_uchur_k`.`cscart_images_links`.`type` = 'M') and (`test_uchur_k`.`cscart_images_links`.`object_id` in (21567,50989,86,84,95,51347,85,136)))",
"cost_info": {
"read_cost": "5.16",
"eval_cost": "0.90",
"prefix_cost": "6.06",
"data_read_per_join": "864"
},
"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": [
"test_uchur_k.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.25",
"eval_cost": "0.90",
"prefix_cost": "9.21",
"data_read_per_join": "6K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res",
"transparent"
]
}
},
{
"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": [
"test_uchur_k.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.25",
"eval_cost": "0.90",
"prefix_cost": "12.36",
"data_read_per_join": "5K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
]
}
}
]
}
}
}
Result
| image_id |
image_path |
image_x |
image_y |
is_high_res |
transparent |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
| 0 |
noski_uchur_active_city_cv_chernyy_578_noskiuchuractivecitycvchernyy.png |
1000 |
1400 |
N |
N |
578 |
84 |
product |
9176 |
M |
0 |
|
9176 |
| 0 |
noski_uchur_active_cv_chernyy_seryy_r_40_43_1572_noskiuchuractivecvchernyyseryy.png |
1000 |
1400 |
N |
N |
582 |
85 |
product |
9180 |
M |
0 |
|
9180 |
| 0 |
perchatki_uchur_hunter_lt_cv_taas_597_perchatkiuchurhunterltcvtaas.jpg |
4160 |
5536 |
N |
N |
597 |
86 |
product |
9195 |
M |
0 |
|
9195 |
| 0 |
snud_uchur_cv_taas_693_snuduchurcvtaas.jpg |
880 |
1232 |
N |
N |
693 |
95 |
product |
9291 |
M |
0 |
|
9291 |
| 0 |
92_ahu0-b9.png |
1000 |
1400 |
N |
N |
4915 |
21567 |
product |
10460 |
M |
0 |
|
10460 |
| 0 |
noski_uchur_active_cv_chernyy_seryy_r_40_43_1572_noskiuchuractivecvchernyyseryy.png |
1000 |
1400 |
N |
N |
8915 |
51347 |
product |
9180 |
M |
0 |
|
9180 |
| 0 |
86_p9gf-gn.png |
1000 |
1400 |
N |
N |
9441 |
50989 |
product |
10633 |
M |
0 |
|
10633 |
| 0 |
5_as5i-1z.png |
1000 |
1400 |
N |
N |
4202 |
136 |
product |
10321 |
M |
2 |
|
10321 |