Query time 0.00836
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "gp",
"access_type": "range",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"rows": 45,
"filtered": 100,
"index_condition": "gp.group_id in (16350,14636,13375,13778,13598,12195,14944,14951,13343,14600,12196,16436,13594,14828,16660)"
}
},
{
"table": {
"table_name": "gpf",
"access_type": "ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "idx_group_id",
"key_length": "3",
"used_key_parts": ["group_id"],
"ref": ["dev_db.gp.group_id"],
"rows": 1,
"filtered": 100
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"key_length": "12",
"used_key_parts": ["product_id", "feature_id", "lang_code"],
"ref": ["dev_db.gp.product_id", "dev_db.gpf.feature_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "pfv.lang_code = 'vi'",
"using_index": true
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
19667 |
14961 |
68396 |
12195 |
19667 |
6527 |
68397 |
12195 |
19668 |
14963 |
68399 |
12196 |
19668 |
14962 |
68398 |
12196 |
19668 |
6526 |
68400 |
12196 |
20950 |
20844 |
73187 |
13343 |
20950 |
20843 |
73186 |
13343 |
20950 |
20842 |
73185 |
13343 |
20950 |
2626 |
73188 |
13343 |
20982 |
20935 |
73311 |
13375 |
20982 |
2565 |
73310 |
13375 |
21211 |
21747 |
74204 |
13594 |
21211 |
21746 |
74203 |
13594 |
21211 |
2171 |
74205 |
13594 |
21215 |
21752 |
74213 |
13598 |
21215 |
21751 |
74212 |
13598 |
21215 |
2155 |
74214 |
13598 |
21419 |
22513 |
74938 |
13778 |
21419 |
1850 |
74939 |
13778 |
22332 |
25726 |
78274 |
14600 |
22332 |
25725 |
78273 |
14600 |
22332 |
25724 |
78272 |
14600 |
22332 |
25723 |
78271 |
14600 |
22332 |
25722 |
78270 |
14600 |
22332 |
406 |
78275 |
14600 |
22369 |
25852 |
78429 |
14636 |
22369 |
25851 |
78428 |
14636 |
22369 |
351 |
78430 |
14636 |
22569 |
2250 |
79220 |
14828 |
22569 |
27213 |
79222 |
14828 |
22569 |
27212 |
79221 |
14828 |
22828 |
26858 |
79638 |
14944 |
22828 |
27052 |
79639 |
14944 |
22835 |
26848 |
79652 |
14951 |
22835 |
27059 |
79653 |
14951 |
24142 |
40808 |
84147 |
16350 |
24142 |
40815 |
84148 |
16350 |
24142 |
40816 |
84149 |
16350 |
24191 |
42361 |
84766 |
16436 |
24191 |
37904 |
84291 |
16436 |
24191 |
41130 |
84292 |
16436 |
24191 |
41131 |
84293 |
16436 |
24436 |
4588 |
85225 |
16660 |
24436 |
43796 |
85226 |
16660 |