Query time 0.00232
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": 60,
"filtered": 100,
"index_condition": "gp.group_id in (15804,16573,16729,15339)"
}
},
{
"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 |
19630 |
40326 |
83866 |
15339 |
19630 |
40325 |
83865 |
15339 |
19630 |
40324 |
83864 |
15339 |
19630 |
40323 |
83863 |
15339 |
19630 |
40322 |
83862 |
15339 |
19630 |
40321 |
83861 |
15339 |
19630 |
40320 |
68256 |
15339 |
19630 |
31784 |
68254 |
15339 |
19630 |
27378 |
68257 |
15339 |
19630 |
31785 |
68255 |
15339 |
19630 |
42263 |
84727 |
15339 |
19630 |
42262 |
84726 |
15339 |
19630 |
31786 |
68258 |
15339 |
23686 |
42255 |
84725 |
15804 |
23686 |
42254 |
84724 |
15804 |
23686 |
40319 |
83867 |
15804 |
23686 |
6572 |
82132 |
15804 |
23686 |
36264 |
82134 |
15804 |
23686 |
36263 |
82133 |
15804 |
23686 |
36265 |
82135 |
15804 |
23686 |
37256 |
82657 |
15804 |
23686 |
37257 |
82658 |
15804 |
23686 |
37258 |
82659 |
15804 |
23686 |
37259 |
82660 |
15804 |
23686 |
37260 |
82661 |
15804 |
23686 |
42253 |
83868 |
15804 |
23686 |
42294 |
82658 |
16573 |
23686 |
42293 |
82657 |
16573 |
23686 |
42292 |
82135 |
16573 |
23686 |
42290 |
82132 |
16573 |
23686 |
42289 |
84725 |
16573 |
23686 |
42288 |
84724 |
16573 |
23686 |
42287 |
83868 |
16573 |
23686 |
42291 |
82134 |
16573 |
23686 |
40350 |
82133 |
16573 |
23686 |
42286 |
83867 |
16573 |
23686 |
42295 |
82659 |
16573 |
23686 |
42296 |
82660 |
16573 |
23686 |
42297 |
82661 |
16573 |
24493 |
44525 |
85447 |
16729 |
24493 |
44520 |
85438 |
16729 |
24493 |
44533 |
85443 |
16729 |
24493 |
44532 |
85442 |
16729 |
24493 |
44531 |
85441 |
16729 |
24493 |
44530 |
85440 |
16729 |
24493 |
44526 |
85448 |
16729 |
24493 |
44529 |
85439 |
16729 |
24493 |
44528 |
85450 |
16729 |
24493 |
44527 |
85449 |
16729 |
24493 |
44534 |
85444 |
16729 |
24493 |
44535 |
85445 |
16729 |
24493 |
44536 |
85446 |
16729 |