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

Query time 0.00095

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "12.86"
    },
    "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": 28,
      "rows_produced_per_join": 28,
      "filtered": "100.00",
      "index_condition": "(`marketplace`.`ushop_categories`.`id_path` like '323/%')",
      "cost_info": {
        "read_cost": "10.06",
        "eval_cost": "2.80",
        "prefix_cost": "12.86",
        "data_read_per_join": "91K"
      },
      "used_columns": [
        "category_id",
        "id_path"
      ]
    }
  }
}

Result

category_id
362
368
694
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
747
748
749
750
751
752
753
754
755
756