Query time 0.00026
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "13.34"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "l",
          "access_type": "ALL",
          "possible_keys": [
            "PRIMARY"
          ],
          "rows_examined_per_scan": 18,
          "rows_produced_per_join": 1,
          "filtered": "5.56",
          "cost_info": {
            "read_cost": "5.54",
            "eval_cost": "0.20",
            "prefix_cost": "5.74",
            "data_read_per_join": "232"
          },
          "used_columns": [
            "location_id",
            "is_default",
            "layout_id"
          ],
          "attached_condition": "((`atulecarter_atul_demo4`.`l`.`layout_id` = 1) and (`atulecarter_atul_demo4`.`l`.`is_default` = 1))"
        }
      },
      {
        "table": {
          "table_name": "c",
          "access_type": "ref",
          "possible_keys": [
            "location_id",
            "location_id_company_id",
            "location_id_position_company_id"
          ],
          "key": "location_id_position_company_id",
          "used_key_parts": [
            "location_id"
          ],
          "key_length": "3",
          "ref": [
            "atulecarter_atul_demo4.l.location_id"
          ],
          "rows_examined_per_scan": 8,
          "rows_produced_per_join": 0,
          "filtered": "5.00",
          "index_condition": "((`atulecarter_atul_demo4`.`c`.`company_id` = 0) and (`atulecarter_atul_demo4`.`c`.`position` in ('TOP_PANEL','HEADER','FOOTER')))",
          "cost_info": {
            "read_cost": "6.00",
            "eval_cost": "0.08",
            "prefix_cost": "13.34",
            "data_read_per_join": "163"
          },
          "used_columns": [
            "container_id",
            "location_id",
            "position",
            "width",
            "user_class",
            "linked_to_default",
            "status",
            "company_id"
          ]
        }
      }
    ]
  }
}
    
            
            
                Result
                                    
                                                    | container_id | location_id | position | width | user_class | linked_to_default | status | company_id | default | 
                                            
                                                            | 1 | 1 | TOP_PANEL | 16 | top-grid | Y | A | 0 | 1 | 
                                            
                                                            | 2 | 1 | HEADER | 16 | header-grid | Y | A | 0 | 1 | 
                                            
                                                            | 4 | 1 | FOOTER | 16 | ty-footer-grid | Y | A | 0 | 1 |