mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-01 02:02:20 +00:00
fix(migration): add spend_logs api_key/end_user+startTime indexes
This commit is contained in:
parent
1c7411d03d
commit
1af4e6bbe9
1 changed files with 6 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
-- CreateIndex: support fast per-key and per-end-user spend lookups
|
||||
-- used by the cold-cache DB fallback in _PROXY_VirtualKeyModelMaxBudgetLimiter
|
||||
CREATE INDEX IF NOT EXISTS "LiteLLM_SpendLogs_api_key_startTime_idx" ON "LiteLLM_SpendLogs"("api_key", "startTime");
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX IF NOT EXISTS "LiteLLM_SpendLogs_end_user_startTime_idx" ON "LiteLLM_SpendLogs"("end_user", "startTime");
|
||||
Loading…
Add table
Reference in a new issue