openhands
ef5e706ee1
perf: optimize DB layer with caching and pool tuning
- Add Redis cache wrapper (cached-db.ts) — cachedQuery + invalidate helpers
- Add cached login user lookup (auth.ts: getLoginUser) — short 15s TTL
for brute-force protection, cache invalidation on password/rank changes
- Switch auth.ts login flow from Prisma facade to raw SQL via db.execute
(avoids abstraction overhead for this hot path)
- Cache invalidation wired in: login password upgrade, updateUser, resetPassword
- Connection pool tuning: enableKeepAlive, namedPlaceholders,
prepared statement cache (Node 22+), multipleStatements off (SQLi hardening)
- 0 tsc errors, 583 tests passing
2026-07-31 15:01:34 +02:00
..
2026-07-31 15:01:34 +02:00
2026-07-31 14:33:33 +02:00
2026-07-30 21:45:53 +02:00
2026-07-31 14:17:06 +02:00
2026-07-17 21:12:58 +02:00
2026-07-13 21:57:41 +02:00
2026-07-31 15:01:34 +02:00
2026-07-30 21:45:53 +02:00
2026-07-17 22:53:56 +02:00
2026-07-31 14:11:03 +02:00
2026-07-29 22:50:17 +02:00
2026-07-18 19:32:15 +02:00
2026-07-17 23:09:57 +02:00
2026-07-21 20:27:08 +02:00