Query time 0.00205
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "107.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "19.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": 19,
"rows_produced_per_join": 19,
"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 ('14465','14466','14467','14468','14469','14470','14471','14472','14473','14474','14475','14476','14477','14478','14479','14480')))",
"cost_info": {
"read_cost": "38.81",
"eval_cost": "3.80",
"prefix_cost": "42.61",
"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": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.00",
"eval_cost": "3.80",
"prefix_cost": "65.41",
"data_read_per_join": "14K"
},
"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": 19,
"filtered": "100.00",
"cost_info": {
"read_cost": "19.00",
"eval_cost": "3.80",
"prefix_cost": "88.21",
"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 |
31dSr4-QTxL.jpg |
465 |
321 |
N |
28373 |
14465 |
product |
30335 |
M |
0 |
|
30335 |
0 |
41u3JqvUb9L.jpg |
500 |
500 |
N |
28374 |
14466 |
product |
30336 |
M |
0 |
|
30336 |
0 |
41EyscXo7uL.jpg |
500 |
500 |
N |
28375 |
14467 |
product |
30337 |
M |
0 |
|
30337 |
0 |
41m6rGR7giL.jpg |
500 |
500 |
N |
28376 |
14468 |
product |
30338 |
M |
0 |
|
30338 |
0 |
41hSiKg8PwL.jpg |
500 |
408 |
N |
28377 |
14469 |
product |
30339 |
M |
0 |
|
30339 |
0 |
41qzUde396L.jpg |
500 |
500 |
N |
28378 |
14470 |
product |
30340 |
M |
0 |
|
30340 |
0 |
417gbWdJI6L.jpg |
500 |
500 |
N |
28379 |
14471 |
product |
30341 |
M |
0 |
|
30341 |
0 |
41a8-ydoXrL.jpg |
500 |
500 |
N |
28380 |
14472 |
product |
30342 |
M |
0 |
|
30342 |
0 |
41-xIoPczVL.jpg |
500 |
500 |
N |
28381 |
14473 |
product |
30343 |
M |
0 |
|
30343 |
0 |
51JW9Em02JL.jpg |
500 |
500 |
N |
28382 |
14474 |
product |
30344 |
M |
0 |
|
30344 |
0 |
316foYkAl_L.jpg |
500 |
500 |
N |
28384 |
14476 |
product |
30346 |
M |
0 |
|
30346 |
0 |
51QB58MpV5L.jpg |
357 |
500 |
N |
28385 |
14477 |
product |
30347 |
M |
0 |
|
30347 |
0 |
51EIaYFEenL.jpg |
325 |
500 |
N |
28386 |
14478 |
product |
30348 |
M |
0 |
|
30348 |
0 |
51wVjNNKFBL.jpg |
421 |
500 |
N |
28387 |
14479 |
product |
30349 |
M |
0 |
|
30349 |
0 |
213G8TQFB4L.jpg |
200 |
150 |
N |
28388 |
14480 |
product |
30350 |
M |
0 |
|
30350 |
0 |
2_z0io-xw.jpg |
640 |
626 |
N |
83028 |
14475 |
product |
84971 |
M |
0 |
|
84971 |