Query time 0.00097
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "26.16"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "11.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": 11,
"rows_produced_per_join": 11,
"filtered": "100.00",
"index_condition": "((`test_uchur_k`.`cscart_images_links`.`object_type` = 'blog') and (`test_uchur_k`.`cscart_images_links`.`type` = 'M') and (`test_uchur_k`.`cscart_images_links`.`object_id` in (33,34,35,36,37,38,39,40,41,42)))",
"cost_info": {
"read_cost": "6.36",
"eval_cost": "1.10",
"prefix_cost": "7.46",
"data_read_per_join": "1K"
},
"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.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.75",
"eval_cost": "1.10",
"prefix_cost": "11.31",
"data_read_per_join": "8K"
},
"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": 11,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.75",
"eval_cost": "1.10",
"prefix_cost": "15.16",
"data_read_per_join": "6K"
},
"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 |
| 9731 |
EF2A7990_1.png |
1000 |
650 |
N |
N |
1133 |
33 |
blog |
0 |
M |
0 |
|
9731 |
| 9732 |
0.webp |
1000 |
1400 |
N |
N |
1134 |
34 |
blog |
0 |
M |
0 |
|
9732 |
| 9733 |
0_i6eg-ar.webp |
850 |
450 |
N |
N |
1135 |
35 |
blog |
0 |
M |
0 |
|
9733 |
| 9734 |
0_ntsw-ef.jpg |
750 |
480 |
N |
N |
1136 |
36 |
blog |
0 |
M |
0 |
|
9734 |
| 9735 |
0_6jt0-89.jpg |
836 |
384 |
N |
N |
1137 |
37 |
blog |
0 |
M |
0 |
|
9735 |
| 9736 |
0_g7b7-3b.jpg |
860 |
350 |
N |
N |
1138 |
38 |
blog |
0 |
M |
0 |
|
9736 |
| 9737 |
0_64z4-lt.webp |
860 |
350 |
N |
N |
1139 |
40 |
blog |
0 |
M |
0 |
|
9737 |
| 9738 |
0_hdy3-17.webp |
860 |
350 |
N |
N |
1140 |
41 |
blog |
0 |
M |
0 |
|
9738 |
| 9739 |
0_d851-lk.webp |
860 |
350 |
N |
N |
1141 |
42 |
blog |
0 |
M |
0 |
|
9739 |
| 9815 |
1.jpg |
860 |
350 |
N |
N |
1229 |
39 |
blog |
0 |
M |
0 |
|
9815 |