Query time 0.00128
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "265.21"
},
"ordering_operation": {
"using_filesort": true,
"cost_info": {
"sort_cost": "49.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": 49,
"rows_produced_per_join": 49,
"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 ('105','15','16','17','18','19','20','21','22','23','24','25','26','27','28','29','30','31','32','33','34','35','36','37','38','39','40','41','42','43')))",
"cost_info": {
"read_cost": "88.81",
"eval_cost": "9.80",
"prefix_cost": "98.61",
"data_read_per_join": "4K"
},
"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.image_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 49,
"filtered": "100.00",
"cost_info": {
"read_cost": "49.00",
"eval_cost": "9.80",
"prefix_cost": "157.41",
"data_read_per_join": "37K"
},
"used_columns": [
"image_id",
"image_path",
"image_x",
"image_y",
"is_high_res"
]
}
},
{
"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": 49,
"filtered": "100.00",
"cost_info": {
"read_cost": "49.00",
"eval_cost": "9.80",
"prefix_cost": "216.21",
"data_read_per_join": "29K"
},
"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 |
|
|
|
|
73 |
15 |
product |
2050 |
M |
0 |
|
|
0 |
|
|
|
|
75 |
16 |
product |
2052 |
M |
0 |
|
|
0 |
|
|
|
|
76 |
17 |
product |
2053 |
M |
0 |
|
|
0 |
|
|
|
|
77 |
18 |
product |
2054 |
M |
0 |
|
|
0 |
|
|
|
|
79 |
19 |
product |
2056 |
M |
0 |
|
|
0 |
|
|
|
|
81 |
20 |
product |
2058 |
M |
0 |
|
|
0 |
|
|
|
|
83 |
21 |
product |
2060 |
M |
0 |
|
|
0 |
|
|
|
|
85 |
22 |
product |
2062 |
M |
0 |
|
|
0 |
|
|
|
|
87 |
23 |
product |
2064 |
M |
0 |
|
|
0 |
|
|
|
|
89 |
24 |
product |
2066 |
M |
0 |
|
|
0 |
|
|
|
|
90 |
25 |
product |
2067 |
M |
0 |
|
|
0 |
|
|
|
|
92 |
26 |
product |
2069 |
M |
0 |
|
|
0 |
|
|
|
|
94 |
28 |
product |
2071 |
M |
0 |
|
|
0 |
|
|
|
|
95 |
29 |
product |
2072 |
M |
0 |
|
|
0 |
|
|
|
|
97 |
30 |
product |
2074 |
M |
0 |
|
|
0 |
|
|
|
|
99 |
31 |
product |
2076 |
M |
0 |
|
|
0 |
|
|
|
|
101 |
32 |
product |
2078 |
M |
0 |
|
|
0 |
|
|
|
|
103 |
33 |
product |
2080 |
M |
0 |
|
|
0 |
|
|
|
|
105 |
34 |
product |
2082 |
M |
0 |
|
|
0 |
|
|
|
|
107 |
35 |
product |
2084 |
M |
0 |
|
|
0 |
|
|
|
|
109 |
36 |
product |
2086 |
M |
0 |
|
|
0 |
|
|
|
|
111 |
37 |
product |
2088 |
M |
0 |
|
|
0 |
|
|
|
|
112 |
38 |
product |
2089 |
M |
0 |
|
|
0 |
|
|
|
|
114 |
39 |
product |
2091 |
M |
0 |
|
|
0 |
|
|
|
|
115 |
40 |
product |
2092 |
M |
0 |
|
|
0 |
|
|
|
|
117 |
41 |
product |
2094 |
M |
0 |
|
|
0 |
|
|
|
|
119 |
42 |
product |
2096 |
M |
0 |
|
|
0 |
|
|
|
|
121 |
43 |
product |
2098 |
M |
0 |
|
|
0 |
|
|
|
|
237 |
105 |
product |
2214 |
M |
0 |
|
|
0 |
|
|
|
|
544 |
27 |
product |
2521 |
M |
0 |
|
|