* fix: add missing indexes for top CPU-consuming queries Add indexes to eliminate full table scans on two of the top 5 queries by CPU usage: 1. LiteLLM_VerificationToken(key_alias) — for ORDER BY key_alias ASC queries when listing verification tokens 2. LiteLLM_SpendLogs(user, startTime) — for WHERE user = $1 AND startTime BETWEEN $2 AND $3 GROUP BY queries on the spend logs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: use CREATE INDEX CONCURRENTLY to avoid table locks Both indexes are now created with CONCURRENTLY and IF NOT EXISTS to avoid blocking writes on large production tables. Uses -- SkipTransactionBlock for Prisma migrate compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| dist | ||
| litellm_proxy_extras | ||
| tests | ||
| build_and_publish.md | ||
| LICENSE | ||
| migration_runbook.md | ||
| poetry.lock | ||
| 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:
pip install litellm-proxy-extras
OR
pip install litellm[proxy] # installs litellm-proxy-extras and other proxy dependencies
To use the migrations, run:
litellm --use_prisma_migrate