Ryan Crabbe
86ec2fbf84
perf(proxy): batch 11 create_task() calls into 1 in update_database()
...
Replace 11 separate asyncio.create_task() calls per request with a
single batched task that runs all spend-update helpers sequentially.
This reduces task scheduling overhead at high RPS (11,000 -> 1,000
tasks/sec at 1K RPS) and cuts 5 copy.deepcopy(payload) calls to 1
shared copy.
Also fixes a mutation bug where the daily agent spend handler received
the raw payload without deepcopy, unlike all other daily helpers.
2026-02-24 10:04:43 -08:00
..
2026-02-24 19:37:09 +05:30
2026-02-13 22:01:28 -08:00
2026-02-05 10:58:08 -08:00
2026-02-21 20:12:01 -08:00
2025-12-10 10:10:28 -08:00
2026-02-23 21:00:37 -08:00
2026-02-24 10:04:43 -08:00
2026-02-10 22:47:03 -08:00
2026-01-27 09:34:58 -08:00
2026-02-23 21:00:37 -08:00
2026-02-21 10:02:24 -08:00
2026-02-21 11:30:35 -08:00
2026-02-12 17:54:32 -08:00
2026-02-23 21:00:37 -08:00
2025-10-07 16:48:00 -07:00
2026-02-21 12:06:31 -08:00
2026-02-21 11:20:32 -08:00
2026-02-21 14:14:50 -08:00
2026-02-21 20:14:31 -08:00
2026-01-20 12:28:34 -08:00
2026-01-16 15:36:56 -08:00
2026-02-18 16:58:38 -08:00
2025-12-12 11:44:51 +05:30
2026-02-21 14:14:50 -08:00
2026-02-23 21:00:37 -08:00
2026-01-31 12:05:09 -08:00
2025-10-17 10:46:42 -07:00
2025-12-12 07:35:50 -08:00
2026-02-23 21:06:29 -08:00
2026-02-12 19:58:05 +05:30
2026-01-23 21:21:23 -08:00
2026-02-23 21:00:37 -08:00
2025-10-23 13:59:29 -07:00
2026-01-21 11:02:39 -08:00
2025-12-03 12:19:21 +05:30
2026-01-16 10:51:33 +05:30
2025-12-05 14:27:37 +05:30
2026-02-21 20:14:31 -08:00
2026-02-21 10:48:10 -08:00
2025-11-24 20:40:43 -08:00
2026-02-21 15:23:55 -08:00
2026-02-21 12:44:50 -08:00
2026-01-21 21:09:57 -08:00
2026-02-14 12:07:20 -08:00
2026-01-28 22:26:38 -08:00
2026-02-05 09:47:05 +05:30
2026-01-31 16:04:52 -08:00
2025-10-09 22:18:05 +05:30
2026-01-14 22:14:48 +05:30
2026-02-21 11:30:35 -08:00