Query time 0.02624
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "pfv",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "fl",
"key_length": "9",
"used_key_parts": ["feature_id", "lang_code"],
"rowid_filter": {
"range": {
"key": "product_id",
"used_key_parts": ["product_id"]
},
"rows": 97,
"selectivity_pct": 0.061313241
},
"rows": 72,
"filtered": 0.061313242,
"index_condition": "pfv.feature_id in (23660,23659,23403,23405,23404,23654,23653,23391,23658,23392,23394,23400,23398,23652,23656,23657,23402,23401) and pfv.lang_code = 'en'",
"attached_condition": "pfv.product_id in (35929,35925,32703,32706,32704,35917,35916,33081,35921,32679,32683,32696,32691,35912,35919,35920,32700,33102)"
}
},
{
"table": {
"table_name": "fv",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "feature_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"ref": ["dev_db.pfv.variant_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "fv.feature_id = pfv.feature_id"
}
},
{
"table": {
"table_name": "fvd",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["dev_db.pfv.variant_id", "const"],
"rows": 1,
"filtered": 100,
"index_condition": "fvd.lang_code = 'en'"
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
position |
variant |
23391 |
33081 |
81139 |
2 |
Aorie |
23392 |
32679 |
81144 |
1 |
Style 1 |
23394 |
32683 |
81150 |
1 |
Pink color |
23398 |
32691 |
81160 |
1 |
White |
23400 |
32696 |
81164 |
1 |
Watermelon |
23401 |
33102 |
81168 |
2 |
Quartz necklace |
23402 |
32700 |
81170 |
1 |
17cm |
23403 |
32703 |
81172 |
1 |
SG04A |
23404 |
32704 |
81177 |
1 |
Pink - Neon yellow |
23405 |
32706 |
81181 |
1 |
Regular version |
23652 |
35912 |
82009 |
1 |
Watermelon |
23653 |
35916 |
82011 |
1 |
66-76cm in length |
23654 |
35917 |
82014 |
1 |
66-76cm in length |
23656 |
35919 |
82020 |
1 |
66-76cm in length |
23657 |
35920 |
82023 |
1 |
66-76cm in length |
23658 |
35921 |
82026 |
1 |
66-76cm in length |
23659 |
35925 |
82029 |
1 |
“Thuần” 2 |
23660 |
35929 |
82032 |
1 |
Blue |