Query time 0.00049
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "6.16"
    },
    "ordering_operation": {
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_profile_fields",
            "access_type": "ref",
            "possible_keys": [
              "PRIMARY",
              "profile_show"
            ],
            "key": "profile_show",
            "used_key_parts": [
              "profile_show"
            ],
            "key_length": "4",
            "ref": [
              "const"
            ],
            "rows_examined_per_scan": 9,
            "rows_produced_per_join": 0,
            "filtered": "9.09",
            "index_condition": "((`atulecarter_atul_demo5`.`cscart_profile_fields`.`profile_show` <=> 'Y') and ((`atulecarter_atul_demo5`.`cscart_profile_fields`.`field_type` <> 'E') or (`atulecarter_atul_demo5`.`cscart_profile_fields`.`field_type` = 'E')))",
            "cost_info": {
              "read_cost": "2.40",
              "eval_cost": "0.16",
              "prefix_cost": "4.20",
              "data_read_per_join": "857"
            },
            "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_demo5`.`cscart_profile_fields`.`profile_type` = 'U') and ((`atulecarter_atul_demo5`.`cscart_profile_fields`.`field_type` <> 'E') or ((`atulecarter_atul_demo5`.`cscart_profile_fields`.`section` <> 'C') and (`atulecarter_atul_demo5`.`cscart_profile_fields`.`field_type` = 'E'))))"
          }
        },
        {
          "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_demo5.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.82",
              "eval_cost": "0.16",
              "prefix_cost": "5.18",
              "data_read_per_join": "641"
            },
            "used_columns": [
              "object_id",
              "description",
              "object_type",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_ult_objects_sharing",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "share_object_id",
              "share_company_id",
              "share_object_type"
            ],
            "key_length": "159",
            "ref": [
              "atulecarter_atul_demo5.cscart_profile_fields.field_id",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "using_index": true,
            "cost_info": {
              "read_cost": "0.82",
              "eval_cost": "0.16",
              "prefix_cost": "6.16",
              "data_read_per_join": "130"
            },
            "used_columns": [
              "share_company_id",
              "share_object_id",
              "share_object_type"
            ],
            "attached_condition": "(`atulecarter_atul_demo5`.`cscart_ult_objects_sharing`.`share_object_id` = `atulecarter_atul_demo5`.`cscart_profile_fields`.`field_id`)"
          }
        }
      ]
    }
  }
}
    
            
            
                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 | 
                                            
                                                            | 6 | firstname | Y | N | Y | N | N | N | Y | I | U | 10 | Y | C | 0 | first-name |  | given-name | First name | N | 
                                            
                                                            | 7 | lastname | Y | N | Y | N | N | N | Y | I | U | 20 | Y | C | 0 | last-name |  | surname | Last name | N | 
                                            
                                                            | 19 | s_address | Y | N | Y | Y | N | N | Y | I | U | 30 | Y | S | 18 | shipping-address | litecheckout__field--xlarge | shipping street-address | Address | N | 
                                            
                                                            | 9 | phone | Y | N | Y | N | N | N | Y | P | U | 40 | Y | C | 0 | phone |  | tel | Phone | N | 
                                            
                                                            | 23 | s_city | Y | N | Y | Y | N | N | Y | I | U | 50 | Y | S | 22 | shipping-city |  | city | City | N | 
                                            
                                                            | 27 | s_country | Y | N | Y | Y | N | N | Y | O | U | 60 | Y | S | 26 | shipping-country |  | country | Country | N | 
                                            
                                                            | 25 | s_state | Y | N | Y | Y | N | N | Y | A | U | 70 | Y | S | 24 | shipping-state |  | state | State/province | N | 
                                            
                                                            | 29 | s_zipcode | Y | N | Y | Y | N | N | Y | Z | U | 80 | Y | S | 28 | shipping-zip-code | litecheckout__field--xsmall | shipping postal-code | Zip/postal code | N |