Query time 0.00085
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "59.24"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "18.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": 18,
"rows_produced_per_join": 18,
"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 (68896,68899,68897,68900,68901,68902,68903,68904,68906,68907,68978,68977,68979,68980,68981,68982,68983,68984)))",
"cost_info": {
"read_cost": "18.94",
"eval_cost": "1.80",
"prefix_cost": "20.74",
"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": [
"cscart_db.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.25",
"eval_cost": "1.80",
"prefix_cost": "31.80",
"data_read_per_join": "13K"
},
"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": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.65",
"eval_cost": "1.80",
"prefix_cost": "41.25",
"data_read_per_join": "10K"
},
"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 |
uc_keo0-sh.jpg |
800 |
800 |
N |
200694 |
68896 |
product |
201978 |
M |
0 |
|
201978 |
| 0 |
uc_hd2o-0r.jpg |
800 |
800 |
N |
200705 |
68897 |
product |
201989 |
M |
0 |
|
201989 |
| 0 |
uc_q3jt-ha.jpg |
800 |
800 |
N |
200727 |
68899 |
product |
202011 |
M |
0 |
|
202011 |
| 0 |
uc_22du-4q.jpg |
800 |
800 |
N |
200738 |
68900 |
product |
202022 |
M |
0 |
|
202022 |
| 0 |
uc_l3kl-0f.jpg |
800 |
800 |
N |
200749 |
68901 |
product |
202033 |
M |
0 |
|
202033 |
| 0 |
uc_nnnd-4h.jpg |
800 |
800 |
N |
200760 |
68902 |
product |
202044 |
M |
0 |
|
202044 |
| 0 |
uc_n3rt-bk.jpg |
800 |
800 |
N |
200770 |
68903 |
product |
202054 |
M |
0 |
|
202054 |
| 0 |
uc_5r0n-1k.jpg |
800 |
800 |
N |
200781 |
68904 |
product |
202065 |
M |
0 |
|
202065 |
| 0 |
uc_q385-dh.jpg |
800 |
800 |
N |
200803 |
68906 |
product |
202087 |
M |
0 |
|
202087 |
| 0 |
uc_2i03-9t.jpg |
800 |
800 |
N |
200814 |
68907 |
product |
202098 |
M |
0 |
|
202098 |
| 0 |
uc_xwj8-t8.jpg |
1080 |
1440 |
N |
202029 |
68977 |
product |
203313 |
M |
0 |
|
203313 |
| 0 |
uc_klda-ku.jpg |
1080 |
1440 |
N |
202037 |
68978 |
product |
203321 |
M |
0 |
|
203321 |
| 0 |
uc_v0ql-cq.jpg |
1080 |
1440 |
N |
202053 |
68980 |
product |
203337 |
M |
0 |
|
203337 |
| 0 |
uc_otwn-s1.jpg |
1080 |
1440 |
N |
202061 |
68981 |
product |
203345 |
M |
0 |
|
203345 |
| 0 |
uc_g27r-4s.jpg |
1080 |
1440 |
N |
202069 |
68982 |
product |
203353 |
M |
0 |
|
203353 |
| 0 |
uc_mq6y-vy.jpg |
1080 |
1440 |
N |
202076 |
68983 |
product |
203360 |
M |
0 |
|
203360 |
| 0 |
uc_qwhb-qj.jpg |
1080 |
1440 |
N |
202084 |
68984 |
product |
203368 |
M |
0 |
|
203368 |
| 0 |
uc_p95g-t1.jpg |
1080 |
1440 |
N |
202518 |
68979 |
product |
203802 |
M |
0 |
|
203802 |