Query time 0.00198
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "363.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "69.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": 69,
"rows_produced_per_join": 69,
"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 ('29301','29302','29303','29304','29305','29306','29307','29308','29309','29310','29311','29312','29313','29314','29315','29316','29317','29318','29319','29320','29321','29322','29323','29324','29325','29326','29327','29328','29329','29330','29331','29332')))",
"cost_info": {
"read_cost": "114.81",
"eval_cost": "13.80",
"prefix_cost": "128.61",
"data_read_per_join": "6K"
},
"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": 69,
"filtered": "100.00",
"cost_info": {
"read_cost": "69.00",
"eval_cost": "13.80",
"prefix_cost": "211.41",
"data_read_per_join": "52K"
},
"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": 69,
"filtered": "100.00",
"cost_info": {
"read_cost": "69.00",
"eval_cost": "13.80",
"prefix_cost": "294.21",
"data_read_per_join": "40K"
},
"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 |
41S-9-356qL.jpg |
500 |
309 |
N |
42593 |
29332 |
product |
44555 |
M |
0 |
|
44555 |
0 |
31mkxcTdV5L.jpg |
500 |
383 |
N |
42608 |
29331 |
product |
44570 |
M |
0 |
|
44570 |
0 |
41qz6_YZIVL.jpg |
500 |
500 |
N |
42615 |
29330 |
product |
44577 |
M |
0 |
|
44577 |
0 |
61pq_d2yv3L._SL1000_.jpg |
1000 |
1000 |
N |
42631 |
29329 |
product |
44593 |
M |
0 |
|
44593 |
0 |
41AYHLuJHcL.jpg |
500 |
449 |
N |
44206 |
29311 |
product |
46168 |
M |
0 |
|
46168 |
0 |
41GQj8DXj2L.jpg |
500 |
492 |
N |
44213 |
29310 |
product |
46175 |
M |
0 |
|
46175 |
0 |
51Epwf66acL._SL1001_.jpg |
919 |
1001 |
N |
44220 |
29309 |
product |
46182 |
M |
0 |
|
46182 |
0 |
416DTDNG_uL.jpg |
500 |
312 |
N |
44228 |
29308 |
product |
46190 |
M |
0 |
|
46190 |
0 |
41CHGcuqsuL.jpg |
500 |
500 |
N |
44238 |
29307 |
product |
46200 |
M |
0 |
|
46200 |
0 |
313pJmgnRnL.jpg |
500 |
500 |
N |
44252 |
29305 |
product |
46214 |
M |
0 |
|
46214 |
0 |
41bgCFGZLgL.jpg |
500 |
500 |
N |
44263 |
29304 |
product |
46225 |
M |
0 |
|
46225 |
0 |
41NnksFEeHL.jpg |
500 |
500 |
N |
44270 |
29303 |
product |
46232 |
M |
0 |
|
46232 |
0 |
61jRHCaCJ9L._SL1500_.jpg |
1500 |
1500 |
N |
44302 |
29302 |
product |
46264 |
M |
0 |
|
46264 |
0 |
51jg_CXrmgL.jpg |
500 |
500 |
N |
44318 |
29301 |
product |
46280 |
M |
0 |
|
46280 |
0 |
31CpmqvGq3L.jpg |
500 |
482 |
N |
45030 |
29328 |
product |
46992 |
M |
0 |
|
46992 |
0 |
41XFXP2SMQL.jpg |
500 |
500 |
N |
45049 |
29326 |
product |
47011 |
M |
0 |
|
47011 |
0 |
41c-n-PuQCL.jpg |
500 |
362 |
N |
45055 |
29325 |
product |
47017 |
M |
0 |
|
47017 |
0 |
41znnCg98aL.jpg |
496 |
500 |
N |
45064 |
29323 |
product |
47026 |
M |
0 |
|
47026 |
0 |
41CFZP5d98L.jpg |
500 |
387 |
N |
45076 |
29322 |
product |
47038 |
M |
0 |
|
47038 |
0 |
61ifhDWAaZL._SL1000_.jpg |
1000 |
1000 |
N |
45083 |
29321 |
product |
47045 |
M |
0 |
|
47045 |
0 |
419ykFpoZ5L.jpg |
500 |
460 |
N |
45090 |
29320 |
product |
47052 |
M |
0 |
|
47052 |
0 |
310w4EjXRML.jpg |
500 |
500 |
N |
45099 |
29319 |
product |
47061 |
M |
0 |
|
47061 |
0 |
31Z94lOw9KL.jpg |
500 |
500 |
N |
45108 |
29318 |
product |
47070 |
M |
0 |
|
47070 |
0 |
51E9s8UY1mL._SL1200_.jpg |
1200 |
1200 |
N |
45117 |
29317 |
product |
47079 |
M |
0 |
|
47079 |
0 |
51m3KA6PBJL.jpg |
423 |
500 |
N |
45124 |
29316 |
product |
47086 |
M |
0 |
|
47086 |
0 |
41i9kFGh5lL.jpg |
500 |
500 |
N |
45133 |
29315 |
product |
47095 |
M |
0 |
|
47095 |
0 |
61AVdJm4maL._SL1500_.jpg |
1500 |
1500 |
N |
45152 |
29314 |
product |
47114 |
M |
0 |
|
47114 |
0 |
81SB7LsqUSL._SL1500_.jpg |
1500 |
1125 |
N |
45161 |
29313 |
product |
47123 |
M |
0 |
|
47123 |
0 |
61BrbkhTW3L._SL1098_.jpg |
1000 |
1098 |
N |
45170 |
29312 |
product |
47132 |
M |
0 |
|
47132 |
0 |
pearl.jpg |
640 |
626 |
N |
50578 |
29306 |
product |
52539 |
M |
0 |
|
52539 |
0 |
2_zuec-6k.jpg |
640 |
626 |
N |
81576 |
29327 |
product |
83519 |
M |
0 |
|
83519 |
0 |
2_t9fh-uo.jpg |
640 |
626 |
N |
82989 |
29324 |
product |
84932 |
M |
0 |
|
84932 |