Query time 0.00191
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "174.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "30.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": 30,
"rows_produced_per_join": 30,
"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 ('16317','16318','16319','16320','16321','16322','16323','16324','16325','16326','16327','16328','16329','16331','16332','16333','16334','16335','16336','16337','16338','16339','16340','16341','16342','16343','16344','16345','16346','16347')))",
"cost_info": {
"read_cost": "66.01",
"eval_cost": "6.00",
"prefix_cost": "72.01",
"data_read_per_join": "2K"
},
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "108.01",
"data_read_per_join": "22K"
},
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.00",
"eval_cost": "6.00",
"prefix_cost": "144.01",
"data_read_per_join": "17K"
},
"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 |
510D2M1kn3L.jpg |
500 |
500 |
N |
30223 |
16317 |
product |
32185 |
M |
0 |
|
32185 |
0 |
51aXO358XJL.jpg |
444 |
500 |
N |
30224 |
16318 |
product |
32186 |
M |
0 |
|
32186 |
0 |
511bYK1FaaL.jpg |
500 |
424 |
N |
30225 |
16319 |
product |
32187 |
M |
0 |
|
32187 |
0 |
61qqiKztKGL.jpg |
500 |
483 |
N |
30226 |
16320 |
product |
32188 |
M |
0 |
|
32188 |
0 |
51_h4Lsv3nL.jpg |
500 |
402 |
N |
30227 |
16321 |
product |
32189 |
M |
0 |
|
32189 |
0 |
51khkvTO__L.jpg |
374 |
500 |
N |
30228 |
16322 |
product |
32190 |
M |
0 |
|
32190 |
0 |
51cUjWrMSuL.jpg |
500 |
441 |
N |
30229 |
16323 |
product |
32191 |
M |
0 |
|
32191 |
0 |
41CwfhJUo2L.jpg |
500 |
500 |
N |
30230 |
16324 |
product |
32192 |
M |
0 |
|
32192 |
0 |
51u6PMrSrfL.jpg |
500 |
373 |
N |
30231 |
16325 |
product |
32193 |
M |
0 |
|
32193 |
0 |
516XJgTUbgL.jpg |
500 |
500 |
N |
30232 |
16326 |
product |
32194 |
M |
0 |
|
32194 |
0 |
41Wif1JQ8jL.jpg |
500 |
375 |
N |
30233 |
16327 |
product |
32195 |
M |
0 |
|
32195 |
0 |
61tio873QEL.jpg |
440 |
500 |
N |
30234 |
16328 |
product |
32196 |
M |
0 |
|
32196 |
0 |
51xsCV_fwML.jpg |
500 |
500 |
N |
30235 |
16329 |
product |
32197 |
M |
0 |
|
32197 |
0 |
41c6-gmVJYL.jpg |
500 |
256 |
N |
30237 |
16331 |
product |
32199 |
M |
0 |
|
32199 |
0 |
51qc1Mdnc7L.jpg |
500 |
367 |
N |
30238 |
16332 |
product |
32200 |
M |
0 |
|
32200 |
0 |
41u2dGLOoRL.jpg |
333 |
500 |
N |
30239 |
16333 |
product |
32201 |
M |
0 |
|
32201 |
0 |
51Q7s9wageL.jpg |
500 |
500 |
N |
30240 |
16334 |
product |
32202 |
M |
0 |
|
32202 |
0 |
41rWVUkRoZL.jpg |
500 |
500 |
N |
30241 |
16335 |
product |
32203 |
M |
0 |
|
32203 |
0 |
51CHyLSur_L.jpg |
398 |
500 |
N |
30242 |
16336 |
product |
32204 |
M |
0 |
|
32204 |
0 |
51KXHC-xtCL.jpg |
500 |
379 |
N |
30243 |
16337 |
product |
32205 |
M |
0 |
|
32205 |
0 |
51M5l_eyYWL.jpg |
500 |
500 |
N |
30244 |
16338 |
product |
32206 |
M |
0 |
|
32206 |
0 |
51-uHljTYyL.jpg |
500 |
379 |
N |
30245 |
16339 |
product |
32207 |
M |
0 |
|
32207 |
0 |
51jv80GDFwL.jpg |
500 |
500 |
N |
30246 |
16340 |
product |
32208 |
M |
0 |
|
32208 |
0 |
51CGcx14_eL.jpg |
321 |
450 |
N |
30247 |
16341 |
product |
32209 |
M |
0 |
|
32209 |
0 |
51deSB-U21L.jpg |
500 |
455 |
N |
30248 |
16342 |
product |
32210 |
M |
0 |
|
32210 |
0 |
51YNmOql__L.jpg |
500 |
500 |
N |
30249 |
16343 |
product |
32211 |
M |
0 |
|
32211 |
0 |
616R8NmAQ2L.jpg |
405 |
1200 |
N |
30250 |
16344 |
product |
32212 |
M |
0 |
|
32212 |
0 |
51pg3ooa6gL.jpg |
336 |
500 |
N |
30251 |
16345 |
product |
32213 |
M |
0 |
|
32213 |
0 |
31kqJ13HsnL.jpg |
198 |
500 |
N |
30252 |
16346 |
product |
32214 |
M |
0 |
|
32214 |
0 |
41MNY4fmQWL.jpg |
500 |
439 |
N |
30253 |
16347 |
product |
32215 |
M |
0 |
|
32215 |