Query time 0.00889
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.386198801,
"filesort": {
"sort_key": "fd.description, fv.position",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "v",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["const"],
"loops": 1,
"rows": 39,
"cost": 0.048911433,
"filtered": 99.73403931,
"attached_condition": "v.lang_code = 'en'"
}
},
{
"table": {
"table_name": "f",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["tmall.v.feature_id"],
"loops": 38.8962766,
"rows": 1,
"cost": 0.067457474,
"filtered": 100,
"attached_condition": "f.`status` = 'A' and f.display_on_catalog = 'Y' and (f.categories_path = '' or find_in_set(245,f.categories_path) or find_in_set(248,f.categories_path) or find_in_set(166,f.categories_path) or find_in_set(254,f.categories_path) or find_in_set(263,f.categories_path) or find_in_set(255,f.categories_path)) and if(f.parent_id,(subquery#2),'A') = 'A' and (v.variant_id <> 0 or f.feature_type <> 'C' and v.`value` <> '' or f.feature_type = 'C' or v.value_int <> '')"
}
},
{
"table": {
"table_name": "fd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["feature_id", "lang_code"],
"ref": ["tmall.v.feature_id", "const"],
"loops": 38.8962766,
"rows": 1,
"cost": 0.067457474,
"filtered": 100,
"attached_condition": "trigcond(fd.lang_code = 'en')"
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["tmall.v.variant_id"],
"loops": 38.8962766,
"rows": 1,
"cost": 0.067457474,
"filtered": 100
}
},
{
"table": {
"table_name": "vd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["tmall.fv.variant_id", "const"],
"loops": 38.8962766,
"rows": 1,
"cost": 0.067457474,
"filtered": 100,
"attached_condition": "trigcond(vd.lang_code = 'en' and trigcond(fv.variant_id is not null))"
}
},
{
"table": {
"table_name": "gf",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["tmall.f.parent_id"],
"loops": 38.8962766,
"rows": 1,
"cost": 0.067457474,
"filtered": 100,
"attached_condition": "trigcond(gf.feature_type = 'G')"
}
}
],
"subqueries": [
{
"subquery_cache": {
"state": "uninitialized",
"query_block": {
"select_id": 2,
"cost": 0.001933826,
"nested_loop": [
{
"table": {
"table_name": "df",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["tmall.f.parent_id"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100
}
}
]
}
}
}
]
}
}
}
}
Result
| product_id |
feature_id |
value |
value_int |
variant_id |
feature_type |
description |
prefix |
suffix |
variant |
parent_id |
position |
gposition |
| 248 |
47 |
N |
|
0 |
C |
3D support |
|
|
|
20 |
0 |
10 |
| 248 |
42 |
|
|
157 |
M |
Accessories included |
|
|
HDMI cable |
40 |
0 |
50 |
| 248 |
42 |
|
|
156 |
M |
Accessories included |
|
|
Headset |
40 |
0 |
50 |
| 248 |
42 |
|
|
158 |
M |
Accessories included |
|
|
USB cable |
40 |
0 |
50 |
| 248 |
45 |
|
|
161 |
S |
Colors |
|
|
Black |
40 |
0 |
50 |
| 248 |
32 |
|
|
149 |
M |
Communications |
|
|
Ethernet |
30 |
0 |
40 |
| 248 |
32 |
|
|
148 |
M |
Communications |
|
|
Wi-Fi (802.11b/g/n) |
30 |
0 |
40 |
| 248 |
44 |
|
|
160 |
M |
Compatibility with console videogames |
|
|
Xbox One |
40 |
0 |
50 |
| 248 |
41 |
yes, wireless |
|
0 |
T |
Controller included |
|
|
|
40 |
0 |
50 |
| 248 |
29 |
|
|
144 |
S |
CPU |
|
|
8-core AMD |
24 |
0 |
20 |
| 248 |
28 |
|
|
143 |
S |
CPU speed |
|
|
1.75 GHz |
24 |
0 |
20 |
| 248 |
38 |
343x81x264 mm |
|
0 |
T |
Dimensions (W x H x D) |
|
|
|
37 |
0 |
100 |
| 248 |
46 |
HDMI; complectation Kinect 2.0 |
|
0 |
T |
Features |
|
|
|
40 |
0 |
50 |
| 248 |
26 |
|
|
141 |
S |
Graphics processor |
|
|
integrated AMD Radeon GPU |
24 |
0 |
20 |
| 248 |
23 |
|
|
139 |
S |
Hard drive |
|
|
500 GB |
20 |
0 |
10 |
| 248 |
22 |
Y |
|
0 |
C |
HD support |
|
|
|
20 |
0 |
10 |
| 248 |
31 |
|
|
147 |
M |
Ports |
|
|
optical audio output |
30 |
0 |
40 |
| 248 |
31 |
|
|
146 |
M |
Ports |
|
|
USB x2 |
30 |
0 |
40 |
| 248 |
31 |
|
|
145 |
M |
Ports |
|
|
HDMI |
30 |
0 |
40 |
| 248 |
25 |
|
|
140 |
S |
RAM |
|
|
8192 MB, DDR3 |
24 |
0 |
20 |
| 248 |
36 |
|
|
155 |
M |
Supported formats |
|
|
WMA |
33 |
0 |
30 |
| 248 |
35 |
|
|
151 |
M |
Supported storage devices |
|
|
DVD |
33 |
0 |
30 |
| 248 |
35 |
|
|
150 |
M |
Supported storage devices |
|
|
Blu-ray |
33 |
0 |
30 |
| 248 |
35 |
|
|
152 |
M |
Supported storage devices |
|
|
DVD R |
33 |
0 |
30 |
| 248 |
35 |
|
|
154 |
M |
Supported storage devices |
|
|
CD |
33 |
0 |
30 |
| 248 |
35 |
|
|
153 |
M |
Supported storage devices |
|
|
DVD RW |
33 |
0 |
30 |
| 248 |
27 |
|
|
142 |
S |
System performance for floating point computation |
|
|
1.23 TFLOPs |
24 |
0 |
20 |
| 248 |
21 |
|
|
137 |
S |
Type |
|
|
stationary |
20 |
0 |
10 |
| 248 |
34 |
Y |
|
0 |
C |
Video playback |
|
|
|
33 |
0 |
30 |
| 248 |
43 |
|
|
159 |
S |
Videogames storage |
|
|
BD (Blu-ray Disc) |
40 |
0 |
50 |
| 248 |
39 |
3.62 kg |
|
0 |
T |
Weight |
|
|
|
37 |
0 |
100 |