Query time 0.00133
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": 33,
"filtered": 100,
"index_condition": "gp.group_id in (16489,16481,16482,16480,17004)"
}
},
{
"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 |
24222 |
41420 |
84386 |
16480 |
24222 |
41447 |
84387 |
16480 |
24222 |
41448 |
84388 |
16480 |
24222 |
41449 |
84389 |
16480 |
24222 |
41450 |
84390 |
16480 |
24223 |
41421 |
84391 |
16481 |
24223 |
41451 |
84392 |
16481 |
24223 |
41452 |
84393 |
16481 |
24223 |
41453 |
84394 |
16481 |
24223 |
41454 |
84395 |
16481 |
24224 |
41422 |
84396 |
16482 |
24224 |
41455 |
84397 |
16482 |
24224 |
41456 |
84398 |
16482 |
24224 |
41457 |
84399 |
16482 |
24224 |
41458 |
84400 |
16482 |
24231 |
41429 |
84426 |
16489 |
24231 |
41478 |
84427 |
16489 |
24231 |
41479 |
84428 |
16489 |
24231 |
41480 |
84429 |
16489 |
24754 |
47152 |
86327 |
17004 |
24754 |
47148 |
86326 |
17004 |
24754 |
48212 |
86840 |
17004 |
24754 |
48213 |
86841 |
17004 |