Query time 0.00114
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "184.01"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "35.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": 35,
"rows_produced_per_join": 35,
"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 ('29827','29828','29829','29830','29831','29832','29833','29834','29835','29836','29837','29838','29839','29840','29841','29842')))",
"cost_info": {
"read_cost": "58.01",
"eval_cost": "7.00",
"prefix_cost": "65.01",
"data_read_per_join": "3K"
},
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "7.00",
"prefix_cost": "107.01",
"data_read_per_join": "26K"
},
"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": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "35.00",
"eval_cost": "7.00",
"prefix_cost": "149.01",
"data_read_per_join": "20K"
},
"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 |
41nq-qMtoGL.jpg |
500 |
372 |
N |
47265 |
29840 |
product |
49227 |
M |
0 |
|
49227 |
0 |
41d4nzWm0aL.jpg |
500 |
441 |
N |
47266 |
29839 |
product |
49228 |
M |
0 |
|
49228 |
0 |
31YC9I_hJjL.jpg |
500 |
500 |
N |
47269 |
29837 |
product |
49231 |
M |
0 |
|
49231 |
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 |
417JojdHMfL.jpg |
500 |
500 |
N |
47279 |
29831 |
product |
49241 |
M |
0 |
|
49241 |
0 |
51dsodgxUjL._SL1000_.jpg |
1000 |
1000 |
N |
47282 |
29830 |
product |
49244 |
M |
0 |
|
49244 |
0 |
41ut8MmvoGL.jpg |
500 |
500 |
N |
47284 |
29829 |
product |
49246 |
M |
0 |
|
49246 |
0 |
31EclXoOlWL.jpg |
500 |
446 |
N |
47285 |
29827 |
product |
49247 |
M |
0 |
|
49247 |
0 |
31MGXs9TVBL.jpg |
500 |
435 |
N |
47402 |
29842 |
product |
49364 |
M |
0 |
|
49364 |
0 |
41cNd6RIE2L.jpg |
500 |
500 |
N |
47403 |
29841 |
product |
49365 |
M |
0 |
|
49365 |
0 |
31Yja7FA2tL.jpg |
500 |
439 |
N |
47404 |
29832 |
product |
49366 |
M |
0 |
|
49366 |
0 |
410xA304ZyL._SX466_.jpg |
466 |
466 |
N |
47405 |
29828 |
product |
49367 |
M |
0 |
|
49367 |
0 |
2_vaw1-ot.jpg |
640 |
626 |
N |
81243 |
29838 |
product |
83186 |
M |
0 |
|
83186 |