Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "81.78"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "27.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": 27,
"rows_produced_per_join": 27,
"filtered": "100.00",
"index_condition": "((`cscart_db`.`cscart_images_links`.`object_type` = 'product') and (`cscart_db`.`cscart_images_links`.`type` = 'A') and (`cscart_db`.`cscart_images_links`.`object_id` in (68137,32144,37263,37830,37876,65234,65259,65262)))",
"cost_info": {
"read_cost": "19.56",
"eval_cost": "2.70",
"prefix_cost": "22.26",
"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": [
"cscart_db.cscart_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "15.43",
"eval_cost": "2.70",
"prefix_cost": "40.40",
"data_read_per_join": "20K"
},
"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": 27,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.68",
"eval_cost": "2.70",
"prefix_cost": "54.78",
"data_read_per_join": "16K"
},
"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 |
2_dvub-0o.jpg |
679 |
679 |
N |
166017 |
37830 |
product |
167366 |
A |
1 |
|
167366 |
| 0 |
IMG_6430.png |
600 |
800 |
N |
166227 |
37876 |
product |
167576 |
A |
1 |
|
167576 |
| 0 |
71bqKZ2L7JL._SX522_b5serum.jpg |
522 |
522 |
N |
176539 |
65234 |
product |
177885 |
A |
1 |
|
177885 |
| 0 |
71m22otb_PL._SX522_Duo2.jpg |
522 |
522 |
N |
176613 |
65262 |
product |
177959 |
A |
1 |
|
177959 |
| 0 |
10_r3zw-3c.jpg |
1080 |
1080 |
N |
193893 |
68137 |
product |
195231 |
A |
1 |
|
195231 |
| 0 |
Biodance_yki7-dh.jpg |
2480 |
3508 |
N |
214462 |
37263 |
product |
215737 |
A |
1 |
|
215737 |
| 0 |
1__1__t08l-9e.png |
1000 |
1000 |
N |
125747 |
32144 |
product |
127099 |
A |
2 |
|
127099 |
| 0 |
5_vi20-5f.jpg |
679 |
679 |
N |
166019 |
37830 |
product |
167368 |
A |
2 |
|
167368 |
| 0 |
IMG_6429.png |
600 |
800 |
N |
166228 |
37876 |
product |
167577 |
A |
2 |
|
167577 |
| 0 |
61a_I5L-L_L._SX522_Duo3.jpg |
522 |
522 |
N |
176614 |
65262 |
product |
177960 |
A |
2 |
|
177960 |
| 0 |
9_su9b-gp.jpg |
1080 |
1080 |
N |
193892 |
68137 |
product |
195230 |
A |
2 |
|
195230 |
| 0 |
Numbuzin_y0ah-05.jpg |
2480 |
3508 |
N |
214433 |
65234 |
product |
215708 |
A |
2 |
|
215708 |
| 0 |
8809652581781_2.jpg |
2000 |
2000 |
N |
215008 |
65259 |
product |
216283 |
A |
2 |
|
216283 |
| 0 |
1__2__bsri-6f.jpg |
1000 |
1000 |
N |
125748 |
32144 |
product |
127100 |
A |
3 |
|
127100 |
| 0 |
4_ev0l-jg.jpg |
679 |
679 |
N |
166016 |
37830 |
product |
167365 |
A |
3 |
|
167365 |
| 0 |
71JxIJW861L._SX522_Duo4.jpg |
522 |
522 |
N |
176615 |
65262 |
product |
177961 |
A |
3 |
|
177961 |
| 0 |
Biodance_ob70-wq.jpg |
2480 |
3508 |
N |
214466 |
37876 |
product |
215741 |
A |
3 |
|
215741 |
| 0 |
8809652581781_3.jpg |
2000 |
2000 |
N |
215009 |
65259 |
product |
216284 |
A |
3 |
|
216284 |
| 0 |
1__1__vzas-md.jpg |
1000 |
1000 |
N |
125749 |
32144 |
product |
127101 |
A |
4 |
|
127101 |
| 0 |
6_g2am-ff.jpg |
679 |
679 |
N |
166018 |
37830 |
product |
167367 |
A |
4 |
|
167367 |
| 0 |
Axis-y_3mp6-ti.jpg |
2480 |
3508 |
N |
214382 |
65262 |
product |
215657 |
A |
4 |
|
215657 |
| 0 |
8809652581781_4.jpg |
2000 |
2000 |
N |
215010 |
65259 |
product |
216285 |
A |
4 |
|
216285 |
| 0 |
7_kyq9-ey.jpg |
679 |
679 |
N |
166020 |
37830 |
product |
167369 |
A |
5 |
|
167369 |
| 0 |
Axis-y_h52l-6f.jpg |
2480 |
3508 |
N |
214356 |
32144 |
product |
215631 |
A |
5 |
|
215631 |
| 0 |
Numbuzin_o18m-e8.jpg |
2480 |
3508 |
N |
214457 |
65259 |
product |
215732 |
A |
5 |
|
215732 |
| 0 |
3_tnzg-x2.jpg |
679 |
679 |
N |
166021 |
37830 |
product |
167370 |
A |
6 |
|
167370 |
| 0 |
I'm-from_w00f-wd.jpg |
2480 |
3508 |
N |
214622 |
37830 |
product |
215897 |
A |
7 |
|
215897 |