Query time 0.00072
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "filesort": {
      "sort_key": "fd.internal_name, fv.position",
      "temporary_table": {
        "table": {
          "table_name": "v",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "variant_id",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "ref": ["const"],
          "rows": 2,
          "filtered": 58.7939682,
          "attached_condition": "v.lang_code = 'ja'"
        },
        "table": {
          "table_name": "f",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY", "status"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["feature_id"],
          "ref": ["cscart_purchase_fl_com.v.feature_id"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "f.`status` = 'A' and f.display_on_header = 'Y' and (f.categories_path = '' or find_in_set(6,f.categories_path) or find_in_set(12,f.categories_path)) and if(f.parent_id,(subquery#2),'A') = 'A' and (v.variant_id <> 0 or f.feature_type <> 'C' and v.`value` <> '' or f.feature_type = 'C' or v.value_int <> '')"
        },
        "table": {
          "table_name": "fd",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["feature_id", "lang_code"],
          "ref": ["cscart_purchase_fl_com.v.feature_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(fd.lang_code = 'ja')"
        },
        "table": {
          "table_name": "fv",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["variant_id"],
          "ref": ["cscart_purchase_fl_com.v.variant_id"],
          "rows": 1,
          "filtered": 100
        },
        "table": {
          "table_name": "vd",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["variant_id", "lang_code"],
          "ref": ["cscart_purchase_fl_com.fv.variant_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(vd.lang_code = 'ja' and trigcond(fv.variant_id is not null))"
        },
        "table": {
          "table_name": "gf",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["feature_id"],
          "ref": ["cscart_purchase_fl_com.f.parent_id"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "trigcond(gf.feature_type = 'G')"
        },
        "table": {
          "table_name": "cscart_ult_objects_sharing",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "159",
          "used_key_parts": [
            "share_object_id",
            "share_company_id",
            "share_object_type"
          ],
          "ref": ["cscart_purchase_fl_com.v.feature_id", "const", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "cscart_ult_objects_sharing.share_object_id = v.feature_id and cscart_ult_objects_sharing.share_object_type = 'product_features'",
          "using_index": true
        },
        "subqueries": [
          {
            "expression_cache": {
              "state": "uninitialized",
              "query_block": {
                "select_id": 2,
                "table": {
                  "table_name": "df",
                  "access_type": "eq_ref",
                  "possible_keys": ["PRIMARY"],
                  "key": "PRIMARY",
                  "key_length": "3",
                  "used_key_parts": ["feature_id"],
                  "ref": ["cscart_purchase_fl_com.f.parent_id"],
                  "rows": 1,
                  "filtered": 100
                }
              }
            }
          }
        ]
      }
    }
  }
}