Query time 0.00084
    
    
            JSON explain
        {
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "18.16"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "cscart_categories",
            "access_type": "range",
            "possible_keys": [
              "c_status",
              "id_path"
            ],
            "key": "id_path",
            "used_key_parts": [
              "id_path"
            ],
            "key_length": "767",
            "rows_examined_per_scan": 12,
            "rows_produced_per_join": 0,
            "filtered": "1.20",
            "index_condition": "(`atulecarter_atul_demo5`.`cscart_categories`.`id_path` like '203/%')",
            "cost_info": {
              "read_cost": "17.78",
              "eval_cost": "0.03",
              "prefix_cost": "17.81",
              "data_read_per_join": "385"
            },
            "used_columns": [
              "category_id",
              "parent_id",
              "id_path",
              "company_id",
              "storefront_id",
              "usergroup_ids",
              "status",
              "position",
              "is_trash"
            ],
            "attached_condition": "((`atulecarter_atul_demo5`.`cscart_categories`.`company_id` = 1) and ((`atulecarter_atul_demo5`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`atulecarter_atul_demo5`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`atulecarter_atul_demo5`.`cscart_categories`.`usergroup_ids`)) and (`atulecarter_atul_demo5`.`cscart_categories`.`status` = 'A') and (`atulecarter_atul_demo5`.`cscart_categories`.`storefront_id` in (0,1)))"
          }
        },
        {
          "table": {
            "table_name": "cscart_category_descriptions",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "category_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "atulecarter_atul_demo5.cscart_categories.category_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.14",
              "eval_cost": "0.03",
              "prefix_cost": "17.98",
              "data_read_per_join": "448"
            },
            "used_columns": [
              "category_id",
              "lang_code",
              "category"
            ]
          }
        },
        {
          "table": {
            "table_name": "cscart_seo_names",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "dispatch"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "object_id",
              "type",
              "dispatch",
              "lang_code",
              "company_id"
            ],
            "key_length": "210",
            "ref": [
              "atulecarter_atul_demo5.cscart_categories.category_id",
              "const",
              "const",
              "const",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 0,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "0.14",
              "eval_cost": "0.03",
              "prefix_cost": "18.16",
              "data_read_per_join": "250"
            },
            "used_columns": [
              "name",
              "object_id",
              "company_id",
              "type",
              "dispatch",
              "path",
              "lang_code"
            ]
          }
        }
      ]
    }
  }
}
    
            
            
                Result
                                    
                                                    | category_id | parent_id | id_path | category | position | status | company_id | storefront_id | seo_name | seo_path | 
                                            
                                                            | 216 | 215 | 203/215/216 | Backpacks | 10 | A | 1 | 1 | backpacks | 203/215 | 
                                            
                                                            | 204 | 203 | 203/204 | Bikes | 10 | A | 1 | 1 | bikes | 203 | 
                                            
                                                            | 210 | 204 | 203/204/210 | Comfort & Cruisers | 10 | A | 1 | 1 | comfort-and-cruisers | 203/204 | 
                                            
                                                            | 212 | 211 | 203/211/212 | Golf Clubs | 10 | A | 1 | 1 | golf-clubs | 203/211 | 
                                            
                                                            | 211 | 203 | 203/211 | Golf | 20 | A | 1 | 1 | golf | 203 | 
                                            
                                                            | 213 | 211 | 203/211/213 | Golf Balls | 20 | A | 1 | 1 | golf-balls | 203/211 | 
                                            
                                                            | 209 | 204 | 203/204/209 | Road Bikes | 20 | A | 1 | 1 | road-bikes | 203/204 | 
                                            
                                                            | 217 | 215 | 203/215/217 | Sleeping Bags | 20 | A | 1 | 1 | sleeping-bags | 203/215 | 
                                            
                                                            | 215 | 203 | 203/215 | Camping | 30 | A | 1 | 1 | camping | 203 | 
                                            
                                                            | 214 | 211 | 203/211/214 | Golf Bags & Carts | 30 | A | 1 | 1 | golf-bags-and-carts | 203/211 | 
                                            
                                                            | 208 | 204 | 203/204/208 | Mountain Bikes | 30 | A | 1 | 1 | mountain-bikes | 203/204 | 
                                            
                                                            | 218 | 215 | 203/215/218 | Tents | 30 | A | 1 | 1 | tents | 203/215 |