Query time 0.00063
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "35.10"
},
"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",
"idx_object_type_type_position"
],
"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": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'M') and (`cscart_db`.`cscart_images_links`.`object_id` in (69467,69466,69469,69465,64696,35204,65820,65821)))",
"cost_info": {
"read_cost": "12.14",
"eval_cost": "0.90",
"prefix_cost": "13.04",
"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": [
"cscart_db.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.97",
"eval_cost": "0.90",
"prefix_cost": "19.91",
"data_read_per_join": "6K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
]
}
},
{
"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": "107",
"ref": [
"cscart_db.cscart_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.30",
"eval_cost": "0.90",
"prefix_cost": "26.11",
"data_read_per_join": "5K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(cscart_common_descriptions), (`cscart_db`.`cscart_common_descriptions`.`object_id` = `cscart_db`.`cscart_images`.`image_id`), true)"
}
}
]
}
}
}
Result
| image_id |
image_path |
image_x |
image_y |
is_high_res |
pair_id |
object_id |
object_type |
detailed_id |
type |
position |
alt |
images_image_id |
| 0 |
lazy.jpg |
450 |
450 |
N |
173758 |
64696 |
product |
175104 |
M |
0 |
|
175104 |
| 0 |
0001__1_.jpg |
1890 |
2158 |
N |
189824 |
35204 |
product |
191162 |
M |
0 |
|
191162 |
| 0 |
0001__1__gu5k-29.jpg |
1890 |
2158 |
N |
189857 |
35204 |
product |
191195 |
M |
0 |
|
191195 |
| 0 |
58_084l-8a.jpg |
1080 |
1440 |
N |
195716 |
65820 |
product |
197054 |
M |
0 |
|
197054 |
| 0 |
58_xuip-db.jpg |
1080 |
1440 |
N |
195724 |
65821 |
product |
197062 |
M |
0 |
|
197062 |
| 0 |
uc_l7qz-vc.jpg |
4234 |
5006 |
N |
207870 |
69465 |
product |
209145 |
M |
0 |
|
209145 |
| 0 |
uc_rmpv-2f.jpg |
4234 |
5006 |
N |
207885 |
69466 |
product |
209160 |
M |
0 |
|
209160 |
| 0 |
uc_evnr-le.jpg |
4234 |
5006 |
N |
207900 |
69467 |
product |
209175 |
M |
0 |
|
209175 |
| 0 |
uc_jzs3-87.jpg |
4058 |
4251 |
N |
207930 |
69469 |
product |
209205 |
M |
0 |
|
209205 |