mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +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. |
||
|---|---|---|
| .. | ||
| dist | ||
| litellm_proxy_extras | ||
| tests | ||
| build_and_publish.md | ||
| LICENSE | ||
| migration_runbook.md | ||
| pyproject.toml | ||
| README.md | ||
Additional files for the proxy. Reduces the size of the main litellm package.
Currently, only stores the migration.sql files for litellm-proxy.
To install, run:
uv add litellm-proxy-extras
OR
uv tool install 'litellm[proxy]' # installs litellm-proxy-extras and other proxy dependencies
To use the migrations, run:
litellm --use_prisma_migrate