fix performance problem of /api/v2/orders/clear