Query time 0.00359
JSON explain
{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"table": {
"table_name": "gpf",
"access_type": "index",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["feature_id", "group_id"],
"rows": 21,
"filtered": 100,
"using_index": true
}
},
{
"table": {
"table_name": "pfv",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["feature_id"],
"ref": ["pucuda_cscart.gpf.feature_id"],
"rows": 5,
"filtered": 45.57195663,
"attached_condition": "pfv.lang_code = 'en'",
"using_index": true
}
},
{
"table": {
"table_name": "gp",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "idx_group_id"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["product_id", "group_id"],
"ref": ["pucuda_cscart.pfv.product_id", "pucuda_cscart.gpf.group_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "gp.group_id in (23,27,30,31,42,45,46)",
"using_index": true
}
}
]
}
}
Result
feature_id |
product_id |
variant_id |
group_id |
569 |
531 |
6830 |
23 |
569 |
533 |
6833 |
23 |
569 |
534 |
6834 |
23 |
569 |
535 |
6835 |
23 |
569 |
536 |
6836 |
23 |
569 |
537 |
6837 |
23 |
569 |
538 |
6838 |
23 |
569 |
539 |
6839 |
23 |
569 |
540 |
6840 |
23 |
569 |
541 |
6841 |
23 |
569 |
542 |
6842 |
23 |
569 |
543 |
6843 |
23 |
569 |
544 |
6844 |
23 |
569 |
545 |
6845 |
23 |
569 |
546 |
6846 |
23 |
569 |
547 |
6847 |
23 |
569 |
592 |
6830 |
30 |
569 |
593 |
6833 |
30 |
569 |
594 |
6834 |
30 |
569 |
595 |
6835 |
30 |
569 |
596 |
6836 |
30 |
569 |
597 |
6837 |
30 |
569 |
598 |
6838 |
30 |
569 |
599 |
6839 |
30 |
569 |
600 |
6840 |
30 |
569 |
601 |
6841 |
30 |
569 |
602 |
6842 |
30 |
569 |
603 |
6843 |
30 |
569 |
604 |
6844 |
30 |
569 |
605 |
6845 |
30 |
569 |
606 |
6846 |
30 |
569 |
607 |
6847 |
30 |
569 |
706 |
6838 |
42 |
569 |
707 |
6830 |
42 |
569 |
708 |
6833 |
42 |
569 |
709 |
6834 |
42 |
569 |
710 |
6835 |
42 |
569 |
711 |
6836 |
42 |
569 |
712 |
6837 |
42 |
569 |
713 |
6839 |
42 |
569 |
714 |
6840 |
42 |
569 |
715 |
6841 |
42 |
569 |
716 |
6842 |
42 |
569 |
717 |
6843 |
42 |
569 |
718 |
6844 |
42 |
569 |
719 |
6845 |
42 |
569 |
720 |
6846 |
42 |
569 |
721 |
6847 |
42 |
569 |
761 |
6838 |
46 |
569 |
762 |
6830 |
46 |
569 |
763 |
6833 |
46 |
569 |
764 |
6834 |
46 |
569 |
765 |
6835 |
46 |
569 |
766 |
6836 |
46 |
569 |
767 |
6837 |
46 |
569 |
768 |
6839 |
46 |
569 |
769 |
6840 |
46 |
569 |
770 |
6841 |
46 |
569 |
771 |
6842 |
46 |
569 |
772 |
6843 |
46 |
569 |
773 |
6844 |
46 |
569 |
774 |
6845 |
46 |
569 |
775 |
6846 |
46 |
569 |
776 |
6847 |
46 |
572 |
570 |
6862 |
27 |
572 |
571 |
6861 |
27 |
572 |
572 |
6863 |
27 |
572 |
569 |
6862 |
31 |
572 |
611 |
6861 |
31 |
572 |
612 |
6863 |
31 |
572 |
757 |
6862 |
45 |
572 |
758 |
6861 |
45 |
572 |
759 |
6863 |
45 |