Query time 0.00111
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "112.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "20.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": 20,
"rows_produced_per_join": 20,
"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 ('14337','14338','14339','14340','14341','14342','14343','14344','14345','14346','14347','14348','14349','14350','14351','14352')))",
"cost_info": {
"read_cost": "40.01",
"eval_cost": "4.00",
"prefix_cost": "44.01",
"data_read_per_join": "1K"
},
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "68.01",
"data_read_per_join": "15K"
},
"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": 20,
"filtered": "100.00",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "92.01",
"data_read_per_join": "11K"
},
"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 |
31OoRvGhmGL.jpg |
333 |
500 |
N |
28243 |
14337 |
product |
30205 |
M |
0 |
|
30205 |
0 |
51ax_zDvDDL.jpg |
500 |
500 |
N |
28244 |
14338 |
product |
30206 |
M |
0 |
|
30206 |
0 |
51zZ3z5S5RL.jpg |
357 |
500 |
N |
28245 |
14339 |
product |
30207 |
M |
0 |
|
30207 |
0 |
31DMCy1iLsL.jpg |
302 |
500 |
N |
28246 |
14340 |
product |
30208 |
M |
0 |
|
30208 |
0 |
41Zj0WZ786L.jpg |
500 |
417 |
N |
28247 |
14341 |
product |
30209 |
M |
0 |
|
30209 |
0 |
41I1TwViRNL.jpg |
500 |
500 |
N |
28248 |
14342 |
product |
30210 |
M |
0 |
|
30210 |
0 |
41x9iO_CZnL.jpg |
347 |
500 |
N |
28249 |
14343 |
product |
30211 |
M |
0 |
|
30211 |
0 |
51CIT-b5-iL.jpg |
465 |
500 |
N |
28250 |
14344 |
product |
30212 |
M |
0 |
|
30212 |
0 |
4133T3yf_AL.jpg |
500 |
406 |
N |
28251 |
14345 |
product |
30213 |
M |
0 |
|
30213 |
0 |
51CzXvCpRCL.jpg |
500 |
500 |
N |
28252 |
14346 |
product |
30214 |
M |
0 |
|
30214 |
0 |
511jjosxNxL.jpg |
500 |
500 |
N |
28253 |
14347 |
product |
30215 |
M |
0 |
|
30215 |
0 |
51275InYxEL.jpg |
500 |
471 |
N |
28254 |
14348 |
product |
30216 |
M |
0 |
|
30216 |
0 |
511OS5OaiUL.jpg |
376 |
500 |
N |
28255 |
14349 |
product |
30217 |
M |
0 |
|
30217 |
0 |
51is1cPETGL.jpg |
498 |
500 |
N |
28256 |
14350 |
product |
30218 |
M |
0 |
|
30218 |
0 |
31q-Bx_PI6L.jpg |
310 |
224 |
N |
28257 |
14351 |
product |
30219 |
M |
0 |
|
30219 |
0 |
41vTnAl0XcL.jpg |
500 |
500 |
N |
28258 |
14352 |
product |
30220 |
M |
0 |
|
30220 |