Performance Optimierungen: Rate Limit, created_at Index, Keyset-Pagination

1. Rate Limit erhoeht: 60 -> 300 Requests/Minute (fuer 100+ User)
2. Migration 0099: created_at DESC Index auf allen Tabellen (Order by Performance)
3. Keyset-Pagination: optionaler cursor Parameter fuer contacts API
   - cursor=UUID nutzt WHERE id > cursor statt OFFSET
   - Backward compatible: ohne cursor wird page/page_size genutzt
   - next_cursor in Response fuer naechste Seite

Tests: 43/43 bestanden
This commit is contained in:
Agent Zero
2026-08-03 19:18:09 +02:00
parent 67c05f39f1
commit 5d35f0064e
4 changed files with 178 additions and 4 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ class Settings(BaseSettings):
rate_limit_reset_window: int = 3600 # 1 hour
rate_limit_reset_confirm_max: int = 5
rate_limit_reset_confirm_window: int = 3600 # 1 hour
rate_limit_general_max: int = 60
rate_limit_general_max: int = 300
rate_limit_general_window: int = 60 # 1 min
@property