mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
feat(schema): Added multi-field indexes to LiteLLM_SpendLogs to improve query performance
- Added indexes to the user, status, api_key, user+startTime, and model_group fields for the LiteLLM_SpendLogs model - Optimized query efficiency for related fields, improving data retrieval performance
This commit is contained in:
parent
85590e4538
commit
b38cdd2ebf
1 changed files with 5 additions and 0 deletions
|
|
@ -504,6 +504,11 @@ model LiteLLM_SpendLogs {
|
|||
mcp_namespaced_tool_name String?
|
||||
agent_id String?
|
||||
proxy_server_request Json? @default("{}")
|
||||
@@index([user])
|
||||
@@index([status])
|
||||
@@index([api_key])
|
||||
@@index([user, startTime])
|
||||
@@index([model_group])
|
||||
@@index([startTime])
|
||||
@@index([end_user])
|
||||
@@index([session_id])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue