SELECT 
  category_id 
FROM 
  ushop_categories 
WHERE 
  id_path LIKE '342/%'

Query time 0.00115

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "8.36"
    },
    "table": {
      "table_name": "ushop_categories",
      "access_type": "range",
      "possible_keys": [
        "id_path"
      ],
      "key": "id_path",
      "used_key_parts": [
        "id_path"
      ],
      "key_length": "767",
      "rows_examined_per_scan": 18,
      "rows_produced_per_join": 18,
      "filtered": "100.00",
      "index_condition": "(`marketplace`.`ushop_categories`.`id_path` like '342/%')",
      "cost_info": {
        "read_cost": "6.56",
        "eval_cost": "1.80",
        "prefix_cost": "8.36",
        "data_read_per_join": "58K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ]
    }
  }
}

Result

category_id
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583