mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-12 03:48:56 +00:00
The Logs tab filters LiteLLM_SpendLogs by api_key inside a startTime window. The table only had indexes on startTime, (startTime, request_id), end_user and session_id, so the api_key predicate degraded to a full scan of the window on both the pagination count and the paged select, re-run on every page turn. On a multi-month table that pinned a customer's Aurora writer near 100% CPU for ~50 minutes. Built CONCURRENTLY: this is the largest table on most deployments, and a blocking build would stall spend-log inserts for the whole build. |
||
|---|---|---|
| .. | ||
| test_component_image_serves_offline.py | ||
| test_db_schema_migration.py | ||
| test_offline_image_migration.py | ||
| test_prisma_toolchain.py | ||
| test_replica_identity_full.py | ||