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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user