noreply
cbfce49aa1
feat: Schedule batch update for account last_used_at
Implement deferred batch update mechanism to reduce database load:
- Add DeferredService for batching account last_used_at updates
- Add TimingWheelService for efficient recurring task scheduling
- Integrate with GatewayService and OpenAIGatewayService
- Implement BatchUpdateLastUsed repository method using CASE...WHEN SQL
- Fix golangci-lint error: Replace interface{} with any
Benefits:
- Reduces database writes by batching updates (10-second intervals)
- Improves request throughput by deferring non-critical updates
- Maintains accurate account usage tracking for scheduling
2025-12-28 09:49:54 +08:00
..
2025-12-26 16:45:40 +08:00
2025-12-28 09:49:54 +08:00
2025-12-26 22:31:12 +08:00
2025-12-27 16:03:57 +08:00
2025-12-27 13:50:35 +08:00
2025-12-27 14:57:43 +08:00
2025-12-27 16:03:57 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-25 17:15:01 +08:00
2025-12-26 16:45:40 +08:00
2025-12-25 17:15:01 +08:00
2025-12-25 17:15:01 +08:00
2025-12-26 22:15:15 +08:00
2025-12-25 17:15:01 +08:00
2025-12-28 09:49:54 +08:00
2025-12-26 16:45:40 +08:00
2025-12-18 13:50:39 +08:00
2025-12-26 16:45:40 +08:00
2025-12-28 09:49:54 +08:00
2025-12-27 12:27:47 +08:00
2025-12-26 22:07:55 +08:00
2025-12-26 00:11:03 -08:00
2025-12-26 00:11:03 -08:00
2025-12-26 22:24:22 +08:00
2025-12-26 22:24:22 +08:00
2025-12-26 00:11:03 -08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-25 17:15:01 +08:00
2025-12-25 17:15:01 +08:00
2025-12-27 20:42:00 +08:00
2025-12-28 09:49:54 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 00:11:03 -08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:47:44 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-28 09:49:54 +08:00
2025-12-26 21:56:08 +08:00
2025-12-27 20:13:39 +08:00
2025-12-27 20:13:39 +08:00
2025-12-25 21:06:40 +08:00
2025-12-25 17:15:01 +08:00
2025-12-26 16:45:40 +08:00
2025-12-27 16:03:57 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-26 16:45:40 +08:00
2025-12-28 09:49:54 +08:00