Query time 0.00163
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "131.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "24.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": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"index_condition": "((`portal`.`q_images_links`.`object_type` = 'product') and (`portal`.`q_images_links`.`type` = 'A') and (`portal`.`q_images_links`.`object_id` in ('8610','8611','8612','8613','8614','8615','8618','8619','8620','8621','8629','8632','8633','8634','8635','8636')))",
"cost_info": {
"read_cost": "44.81",
"eval_cost": "4.80",
"prefix_cost": "49.61",
"data_read_per_join": "2K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "4.80",
"prefix_cost": "78.41",
"data_read_per_join": "18K"
},
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "4.80",
"prefix_cost": "107.21",
"data_read_per_join": "14K"
},
"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 |
51wQBv0zuWL.jpg |
500 |
500 |
N |
18027 |
8610 |
product |
19989 |
A |
1 |
|
19989 |
0 |
41LhsHFEUVL.jpg |
500 |
500 |
N |
18046 |
8618 |
product |
20008 |
A |
1 |
|
20008 |
0 |
41ACpoV4YRL.jpg |
500 |
500 |
N |
18050 |
8621 |
product |
20012 |
A |
1 |
|
20012 |
0 |
61wVK8bnAyL.jpg |
500 |
500 |
N |
18029 |
8610 |
product |
19991 |
A |
2 |
|
19991 |
0 |
51HMg8xW5kL.jpg |
500 |
500 |
N |
18030 |
8610 |
product |
19992 |
A |
3 |
|
19992 |
0 |
51aQ_ybxO9L.jpg |
500 |
500 |
N |
18031 |
8610 |
product |
19993 |
A |
4 |
|
19993 |
0 |
91OQ-LrSRXL._SL1500_.jpg |
1500 |
1500 |
N |
18033 |
8611 |
product |
19995 |
A |
10 |
|
19995 |
0 |
51-2jl9dMXL.jpg |
500 |
500 |
N |
18036 |
8612 |
product |
19998 |
A |
10 |
|
19998 |
0 |
418i867YfLL.jpg |
500 |
500 |
N |
18038 |
8613 |
product |
20000 |
A |
10 |
|
20000 |
0 |
513Jtyx5sjL.jpg |
459 |
500 |
N |
18043 |
8615 |
product |
20005 |
A |
10 |
|
20005 |
0 |
41V_dEnzWfL.jpg |
500 |
349 |
N |
18066 |
8632 |
product |
20028 |
A |
10 |
|
20028 |
0 |
51LPmy_mT0L.jpg |
500 |
325 |
N |
18068 |
8633 |
product |
20030 |
A |
10 |
|
20030 |
0 |
51bl15aNMFL.jpg |
500 |
500 |
N |
18070 |
8634 |
product |
20032 |
A |
10 |
|
20032 |
0 |
41WWYYXyJWL.jpg |
500 |
500 |
N |
18073 |
8635 |
product |
20035 |
A |
10 |
|
20035 |
0 |
41KxOk8ysfL.jpg |
500 |
500 |
N |
18078 |
8636 |
product |
20040 |
A |
10 |
|
20040 |
0 |
51XPT-Lz6FL.jpg |
500 |
500 |
N |
18034 |
8611 |
product |
19996 |
A |
20 |
|
19996 |
0 |
417Slkb-eEL.jpg |
500 |
500 |
N |
18039 |
8613 |
product |
20001 |
A |
20 |
|
20001 |
0 |
41DOGo3DSrL.jpg |
500 |
308 |
N |
18071 |
8634 |
product |
20033 |
A |
20 |
|
20033 |
0 |
51PSsKX_UWL.jpg |
500 |
500 |
N |
18074 |
8635 |
product |
20036 |
A |
20 |
|
20036 |
0 |
41pvyNX6hRL.jpg |
500 |
308 |
N |
18079 |
8636 |
product |
20041 |
A |
20 |
|
20041 |
0 |
41VB57GmlgL.jpg |
500 |
500 |
N |
18040 |
8613 |
product |
20002 |
A |
30 |
|
20002 |
0 |
71FlKXLs11L._SL1500_.jpg |
1500 |
1035 |
N |
18075 |
8635 |
product |
20037 |
A |
30 |
|
20037 |
0 |
41YHvE7wigL.jpg |
500 |
309 |
N |
18080 |
8636 |
product |
20042 |
A |
30 |
|
20042 |
0 |
61_AiMJd6tL._SL1500_.jpg |
1500 |
1128 |
N |
18076 |
8635 |
product |
20038 |
A |
40 |
|
20038 |