Query time 0.00274
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": 18,
"filtered": 100,
"index_condition": "gp.group_id in (13609,13607,13611,13610,13608,13605)"
}
},
{
"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 |
21223 |
21770 |
74235 |
13605 |
21223 |
21769 |
74234 |
13605 |
21223 |
21768 |
74233 |
13605 |
21223 |
2138 |
74236 |
13605 |
21225 |
21776 |
74243 |
13607 |
21225 |
21775 |
74242 |
13607 |
21225 |
21774 |
74241 |
13607 |
21225 |
2136 |
74244 |
13607 |
21226 |
21779 |
74247 |
13608 |
21226 |
21778 |
74246 |
13608 |
21226 |
21777 |
74245 |
13608 |
21226 |
2135 |
74248 |
13608 |
21227 |
21782 |
74251 |
13609 |
21227 |
21781 |
74250 |
13609 |
21227 |
21780 |
74249 |
13609 |
21227 |
2134 |
74252 |
13609 |
21228 |
21785 |
74255 |
13610 |
21228 |
21784 |
74254 |
13610 |
21228 |
21783 |
74253 |
13610 |
21228 |
2133 |
74256 |
13610 |
21229 |
21788 |
74259 |
13611 |
21229 |
21787 |
74258 |
13611 |
21229 |
21786 |
74257 |
13611 |
21229 |
2132 |
74260 |
13611 |