Query time 0.00050
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "7.36"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_profile_fields",
            "access_type": "ref",
            "possible_keys": [
              "field_name",
              "profile_show"
            ],
            "key": "profile_show",
            "used_key_parts": [
              "profile_show"
            ],
            "key_length": "4",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 15,
            "rows_produced_per_join": 0,
            "filtered": "2.56",
            "index_condition": "(`atulecarter_atul_demo4`.`cscart_profile_fields`.`profile_show` <=> 'Y')",
            "cost_info": {
              "read_cost": "3.90",
              "eval_cost": "0.08",
              "prefix_cost": "6.90",
              "data_read_per_join": "403"
            },
            "used_columns": [
              "field_id",
              "field_name",
              "profile_show",
              "profile_required",
              "checkout_show",
              "checkout_required",
              "partner_show",
              "partner_required",
              "storefront_show",
              "field_type",
              "profile_type",
              "position",
              "is_default",
              "section",
              "matching_id",
              "class",
              "wrapper_class",
              "autocomplete_type"
            ],
            "attached_condition": "((`atulecarter_atul_demo4`.`cscart_profile_fields`.`profile_type` = 'S') and (`atulecarter_atul_demo4`.`cscart_profile_fields`.`field_name` <> 'company_description') and (`atulecarter_atul_demo4`.`cscart_profile_fields`.`storefront_show` = 'Y'))"
          }
        },
        {
          "table": {
            "table_name": "cscart_profile_field_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "object_type",
              "lang_code"
            ],
            "key_length": "12",
            "ref": [
              "atulecarter_atul_demo4.cscart_profile_fields.field_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.38",
              "eval_cost": "0.08",
              "prefix_cost": "7.36",
              "data_read_per_join": "301"
            },
            "used_columns": [
              "object_id",
              "description",
              "object_type",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}
    
            
            
                Result
                                    
                                                    | field_id | field_name | profile_show | profile_required | checkout_show | checkout_required | partner_show | partner_required | storefront_show | field_type | profile_type | position | is_default | section | matching_id | class | wrapper_class | autocomplete_type | description | required | 
                                            
                                                            | 36 | company | Y | Y | N | N | N | N | Y | I | S | 10 | Y | C | 0 | company |  | organization | Company | Y | 
                                            
                                                            | 51 | plan_id | Y | N | N | N | N | N | Y | V | S | 15 | Y | C | 0 | plan-id |  |  | Plan | N | 
                                            
                                                            | 39 | email | Y | Y | N | N | N | N | Y | E | S | 40 | Y | C | 0 | email |  | email | E-mail | Y |