John Mizerek
|
dc9db32b58
|
Add API performance profiling, caching, and query optimizations
- Add queryTimed() wrapper and logPerf() for per-endpoint timing metrics
- Add api_perf_log table flush mechanism with background thread batching
- Add application-scope cache (appCacheGet/Put/Invalidate) with TTL
- Cache businesses/get (5m), addresses/states (24h), menu/items (2m)
- Fix N+1 queries in orders/history, orders/listForKDS (batch fetch)
- Fix correlated subquery in orders/getDetail (LEFT JOIN)
- Combine 4 queries into 1 in portal/stats (subselects)
- Optimize getForBuilder tree building with pre-indexed parent lookup
- Add cache invalidation in update, saveBrandColor, updateHours, saveFromBuilder
- New admin/perf.cfm dashboard (localhost-protected)
- Instrument top 10 endpoints with queryTimed + logPerf
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-29 20:41:27 -08:00 |
|
John Mizerek
|
05cf73446f
|
Add dev environment configuration and tools
- api/config/environment.cfm: Central config for dev vs prod settings
- Verbose errors, debug logging, magic OTP bypass
- Rate limiting toggle, email catch-all, token expiry settings
- api/dev/: Development-only endpoints
- seedData.cfm: Create/reset test users
- timeTravel.cfm: Manipulate timestamps for testing
- index.cfm: Dev tools index
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-26 12:39:28 -08:00 |
|