Query time 0.00126
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "179.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "34.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": 34,
"rows_produced_per_join": 34,
"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 ('29811','29812','29813','29814','29815','29816','29817','29818','29819','29820','29821','29822','29823','29824','29825','29826')))",
"cost_info": {
"read_cost": "56.81",
"eval_cost": "6.80",
"prefix_cost": "63.61",
"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": 34,
"filtered": "100.00",
"cost_info": {
"read_cost": "34.00",
"eval_cost": "6.80",
"prefix_cost": "104.41",
"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": 34,
"filtered": "100.00",
"cost_info": {
"read_cost": "34.00",
"eval_cost": "6.80",
"prefix_cost": "145.21",
"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 |
51bf1yjN5YL.jpg |
500 |
415 |
N |
47287 |
29826 |
product |
49249 |
M |
0 |
|
49249 |
0 |
31gScGRn7nL.jpg |
471 |
500 |
N |
47288 |
29825 |
product |
49250 |
M |
0 |
|
49250 |
0 |
61i9ZSnq2OL._SL1000_.jpg |
1000 |
1000 |
N |
47289 |
29824 |
product |
49251 |
M |
0 |
|
49251 |
0 |
41Qibn5r7GL.jpg |
500 |
487 |
N |
47291 |
29823 |
product |
49253 |
M |
0 |
|
49253 |
0 |
31vnsHqczyL.jpg |
500 |
394 |
N |
47292 |
29822 |
product |
49254 |
M |
0 |
|
49254 |
0 |
41cplWqilZL.jpg |
500 |
427 |
N |
47294 |
29821 |
product |
49256 |
M |
0 |
|
49256 |
0 |
71opL4qterL._SL1500_.jpg |
1500 |
1500 |
N |
47295 |
29820 |
product |
49257 |
M |
0 |
|
49257 |
0 |
61HeSXg8oYL._SL1000_.jpg |
1000 |
1000 |
N |
47297 |
29818 |
product |
49259 |
M |
0 |
|
49259 |
0 |
31ppYasdfoL.jpg |
500 |
487 |
N |
47300 |
29817 |
product |
49262 |
M |
0 |
|
49262 |
0 |
41esl4UA4GL.jpg |
500 |
492 |
N |
47306 |
29815 |
product |
49268 |
M |
0 |
|
49268 |
0 |
31vn65EPyRL.jpg |
500 |
500 |
N |
47309 |
29814 |
product |
49271 |
M |
0 |
|
49271 |
0 |
51Xr4DpgcpL._SL1000_.jpg |
1000 |
700 |
N |
47313 |
29812 |
product |
49275 |
M |
0 |
|
49275 |
0 |
41rRm4tA0cL.jpg |
500 |
309 |
N |
47314 |
29811 |
product |
49276 |
M |
0 |
|
49276 |
0 |
41uPlOYT32L.jpg |
500 |
480 |
N |
47406 |
29819 |
product |
49368 |
M |
0 |
|
49368 |
0 |
case_web.jpg |
640 |
626 |
N |
53179 |
29813 |
product |
55140 |
M |
0 |
|
55140 |
0 |
4_u63h-vi.jpg |
640 |
626 |
N |
77942 |
29816 |
product |
79885 |
M |
0 |
|
79885 |