Query time 0.00182
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "495.61"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "97.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": 97,
"rows_produced_per_join": 97,
"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 ('45390','45397','45412','40679','40680','40681','40682','40683','40684','40685','40686','40687','40688','40689','40690','40691','40692','40693','40694','40695','40696','40697','40698','40699','40700','40702','40703','40704','40705','40706')))",
"cost_info": {
"read_cost": "146.41",
"eval_cost": "19.40",
"prefix_cost": "165.81",
"data_read_per_join": "9K"
},
"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": 97,
"filtered": "100.00",
"cost_info": {
"read_cost": "97.00",
"eval_cost": "19.40",
"prefix_cost": "282.21",
"data_read_per_join": "74K"
},
"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": 97,
"filtered": "100.00",
"cost_info": {
"read_cost": "97.00",
"eval_cost": "19.40",
"prefix_cost": "398.61",
"data_read_per_join": "57K"
},
"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 |
61VIisXlYnL._SL1000_.jpg |
1000 |
1000 |
N |
66699 |
40682 |
product |
68650 |
M |
0 |
|
68650 |
0 |
41v4EYdGtjL._SL1000_.jpg |
1000 |
566 |
N |
66701 |
40683 |
product |
68652 |
M |
0 |
|
68652 |
0 |
91VIz5B2cNL._AC_SL1500_.jpg |
1439 |
1500 |
N |
66703 |
40687 |
product |
68654 |
M |
0 |
|
68654 |
0 |
51ejQVnhlFL._AC_SL1000_.jpg |
728 |
801 |
N |
66704 |
40688 |
product |
68655 |
M |
0 |
|
68655 |
0 |
61EgQ-is8hL._AC_SL1500_.jpg |
1124 |
1007 |
N |
66706 |
40689 |
product |
68657 |
M |
0 |
|
68657 |
0 |
8115Tky3GoL._AC_SL1500_.jpg |
1500 |
1414 |
N |
66708 |
40690 |
product |
68659 |
M |
0 |
|
68659 |
0 |
intex-my-baby-float-2-unit-it-56585eu.jpg |
800 |
800 |
N |
66709 |
40691 |
product |
68660 |
M |
0 |
|
68660 |
0 |
51LKzrBUpML._SL1100_.jpg |
762 |
1100 |
N |
66711 |
40692 |
product |
68662 |
M |
0 |
|
68662 |
0 |
41HXTV9KazL.jpg |
500 |
362 |
N |
66714 |
40693 |
product |
68665 |
M |
0 |
|
68665 |
0 |
7522849701.jpg |
569 |
550 |
N |
66716 |
40694 |
product |
68667 |
M |
0 |
|
68667 |
0 |
product-id-24986.jpg |
300 |
300 |
N |
66721 |
40695 |
product |
68672 |
M |
0 |
|
68672 |
0 |
7405456941.jpg |
569 |
550 |
N |
66724 |
40696 |
product |
68675 |
M |
0 |
|
68675 |
0 |
6273256281.jpg |
569 |
550 |
N |
66725 |
40697 |
product |
68676 |
M |
0 |
|
68676 |
0 |
6273256281_75m4-or.jpg |
569 |
550 |
N |
66726 |
40697 |
product |
68677 |
M |
0 |
|
68677 |
0 |
2982004241.jpg |
569 |
550 |
N |
66728 |
40698 |
product |
68679 |
M |
0 |
|
68679 |
0 |
61SdaIVLVBL._AC_SL1024_.jpg |
946 |
658 |
N |
66729 |
40699 |
product |
68680 |
M |
0 |
|
68680 |
0 |
71eynfOSDRL._SL1500_.jpg |
1500 |
1042 |
N |
66731 |
40700 |
product |
68682 |
M |
0 |
|
68682 |
0 |
61_PiD4VT7L._SL1000_.jpg |
1000 |
1000 |
N |
66736 |
40702 |
product |
68687 |
M |
0 |
|
68687 |
0 |
8356604521.jpg |
569 |
550 |
N |
66739 |
40703 |
product |
68690 |
M |
0 |
|
68690 |
0 |
61eR0YTwd0L._SL1024_.jpg |
1024 |
1024 |
N |
66742 |
40704 |
product |
68693 |
M |
0 |
|
68693 |
0 |
81y9JU6KJrL._AC_SL1500_.jpg |
1500 |
1215 |
N |
66743 |
40705 |
product |
68694 |
M |
0 |
|
68694 |
0 |
81gH2ue2G0L._AC_SL1500_.jpg |
1500 |
726 |
N |
66747 |
40706 |
product |
68698 |
M |
0 |
|
68698 |
0 |
91reLSkVRYL._SL1500_.jpg |
1500 |
1042 |
N |
66749 |
40684 |
product |
68700 |
M |
0 |
|
68700 |
0 |
61-bnk4eIZL._SL1000_.jpg |
1000 |
1000 |
N |
66751 |
40685 |
product |
68702 |
M |
0 |
|
68702 |
0 |
51CLwrQTXcL._AC_SL1000_.jpg |
942 |
603 |
N |
66754 |
40686 |
product |
68705 |
M |
0 |
|
68705 |
0 |
61FKGcOfayL._SL1000_.jpg |
1000 |
1000 |
N |
66755 |
40681 |
product |
68706 |
M |
0 |
|
68706 |
0 |
61N2oqxlylL._SL1000_.jpg |
1000 |
1000 |
N |
66757 |
40680 |
product |
68708 |
M |
0 |
|
68708 |
0 |
51lBdRKXhkL._SL1000_.jpg |
1000 |
1000 |
N |
66758 |
40679 |
product |
68709 |
M |
0 |
|
68709 |
0 |
N14507491A_1.jpg |
800 |
1091 |
N |
75700 |
45390 |
product |
77643 |
M |
0 |
|
77643 |
0 |
N11822374A_1.jpg |
800 |
1091 |
N |
76054 |
45397 |
product |
77997 |
M |
0 |
|
77997 |
0 |
N11822374A_1_1bj5-db.jpg |
800 |
1091 |
N |
76055 |
45397 |
product |
77998 |
M |
0 |
|
77998 |
0 |
N11822374A_1_u0st-w7.jpg |
800 |
1091 |
N |
76056 |
45397 |
product |
77999 |
M |
0 |
|
77999 |
0 |
N12833545A_1.jpg |
800 |
1091 |
N |
76905 |
45412 |
product |
78848 |
M |
0 |
|
78848 |