Query time 0.00178
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "404.41"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "78.00"
},
"nested_loop": [
{
"table": {
"table_name": "q_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": 78,
"rows_produced_per_join": 78,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'M') and (`portal`.`q_images_links`.`object_id` in ('29790','29793','29794','29796','29800','29801','29806','29813','29818','29825','29829','29832','29833','29834','29835','29836','29838','29843','29849','29850','29852','29854','29860','29862','29864','29876','29878','29904','29905','30349')))",
"cost_info": {
"read_cost": "123.61",
"eval_cost": "15.60",
"prefix_cost": "139.21",
"data_read_per_join": "7K"
},
"used_columns": [
"pair_id",
"object_id",
"object_type",
"image_id",
"detailed_id",
"type",
"position"
]
}
},
{
"table": {
"table_name": "q_images",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"image_id"
],
"key_length": "4",
"ref": [
"portal.q_images_links.detailed_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 78,
"filtered": "100.00",
"cost_info": {
"read_cost": "78.00",
"eval_cost": "15.60",
"prefix_cost": "232.81",
"data_read_per_join": "59K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
],
"attached_condition": "<if>(is_not_null_compl(q_images), (`portal`.`q_images_links`.`detailed_id` = `portal`.`q_images`.`image_id`), true)"
}
},
{
"table": {
"table_name": "q_common_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"lang_code",
"object_holder"
],
"key_length": "107",
"ref": [
"portal.q_images.image_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 78,
"filtered": "100.00",
"cost_info": {
"read_cost": "78.00",
"eval_cost": "15.60",
"prefix_cost": "326.41",
"data_read_per_join": "46K"
},
"used_columns": [
"object_id",
"description",
"lang_code",
"object_holder"
],
"attached_condition": "<if>(is_not_null_compl(q_common_descriptions), (`portal`.`q_common_descriptions`.`object_id` = `portal`.`q_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 |
31x5jL9uTkL.jpg |
470 |
500 |
N |
47271 |
29836 |
product |
49233 |
M |
0 |
|
49233 |
0 |
61n0KUc1BPL._SL1000_.jpg |
1000 |
1000 |
N |
47273 |
29835 |
product |
49235 |
M |
0 |
|
49235 |
0 |
31lQhhpex3L.jpg |
462 |
500 |
N |
47275 |
29834 |
product |
49237 |
M |
0 |
|
49237 |
0 |
41M63A1A88L.jpg |
480 |
500 |
N |
47277 |
29833 |
product |
49239 |
M |
0 |
|
49239 |
0 |
41ut8MmvoGL.jpg |
500 |
500 |
N |
47284 |
29829 |
product |
49246 |
M |
0 |
|
49246 |
0 |
31gScGRn7nL.jpg |
471 |
500 |
N |
47288 |
29825 |
product |
49250 |
M |
0 |
|
49250 |
0 |
61HeSXg8oYL._SL1000_.jpg |
1000 |
1000 |
N |
47297 |
29818 |
product |
49259 |
M |
0 |
|
49259 |
0 |
6163MNjtTAL._SL1000_.jpg |
1000 |
1000 |
N |
47321 |
29806 |
product |
49283 |
M |
0 |
|
49283 |
0 |
51daWp1PLVL.jpg |
500 |
497 |
N |
47328 |
29801 |
product |
49290 |
M |
0 |
|
49290 |
0 |
412ZH5A-WlL.jpg |
500 |
476 |
N |
47337 |
29796 |
product |
49299 |
M |
0 |
|
49299 |
0 |
31emYRMvF7L.jpg |
469 |
500 |
N |
47341 |
29794 |
product |
49303 |
M |
0 |
|
49303 |
0 |
51G3hTHdBrL.jpg |
486 |
500 |
N |
47342 |
29793 |
product |
49304 |
M |
0 |
|
49304 |
0 |
3188QciE0aL.jpg |
491 |
500 |
N |
47355 |
29878 |
product |
49317 |
M |
0 |
|
49317 |
0 |
31bs2lQYYqL.jpg |
500 |
458 |
N |
47358 |
29876 |
product |
49320 |
M |
0 |
|
49320 |
0 |
21bV4aMM5PL.jpg |
500 |
428 |
N |
47380 |
29864 |
product |
49342 |
M |
0 |
|
49342 |
0 |
4140euq-KfL.jpg |
500 |
427 |
N |
47382 |
29862 |
product |
49344 |
M |
0 |
|
49344 |
0 |
41IdY01J2EL._SX466_.jpg |
466 |
473 |
N |
47384 |
29860 |
product |
49346 |
M |
0 |
|
49346 |
0 |
51tyt_jCbXL._SX522_.jpg |
522 |
352 |
N |
47390 |
29854 |
product |
49352 |
M |
0 |
|
49352 |
0 |
81IZb_nUn9L._SL1500_.jpg |
1500 |
1500 |
N |
47392 |
29852 |
product |
49354 |
M |
0 |
|
49354 |
0 |
511SR_YuUqL.jpg |
491 |
500 |
N |
47394 |
29850 |
product |
49356 |
M |
0 |
|
49356 |
0 |
31HKLYIWe-L.jpg |
467 |
500 |
N |
47395 |
29849 |
product |
49357 |
M |
0 |
|
49357 |
0 |
51Pr_axXUOL.jpg |
500 |
500 |
N |
47401 |
29843 |
product |
49363 |
M |
0 |
|
49363 |
0 |
31Yja7FA2tL.jpg |
500 |
439 |
N |
47404 |
29832 |
product |
49366 |
M |
0 |
|
49366 |
0 |
41w_QeBGgiL._SX466_.jpg |
466 |
474 |
N |
47418 |
29905 |
product |
49380 |
M |
0 |
|
49380 |
0 |
41pFSyXo-EL.jpg |
496 |
500 |
N |
47733 |
29790 |
product |
49694 |
M |
0 |
|
49694 |
0 |
41XDYfemdcL._SX425_.jpg |
425 |
425 |
N |
48559 |
30349 |
product |
50520 |
M |
0 |
|
50520 |
0 |
usb_charging_web.jpg |
640 |
626 |
N |
52787 |
29800 |
product |
54748 |
M |
0 |
|
54748 |
0 |
case_web.jpg |
640 |
626 |
N |
53179 |
29813 |
product |
55140 |
M |
0 |
|
55140 |
0 |
2_vaw1-ot.jpg |
640 |
626 |
N |
81243 |
29838 |
product |
83186 |
M |
0 |
|
83186 |
0 |
2_1dse-sr.jpg |
640 |
626 |
N |
81513 |
29904 |
product |
83456 |
M |
0 |
|
83456 |