Skip to main content

Using at Scale (1M+ rows in DB)

This document is a guide for using LiteLLM Proxy once you have crossed 1M+ rows in the LiteLLM Spend Logs Database.

Why is UI Usage Tracking disabled?​

  • Heavy database queries on LiteLLM_Spend_Logs (once it has 1M+ rows) can slow down your LLM API requests. We do not want this happening

Solutions for Usage Tracking​

Step 1. Export Logs to Cloud Storage

Step 2. Analyze Data

[Optional] Step 3. Disable Spend + Error Logs to LiteLLM DB

See Instructions Here

Disabling this will prevent your LiteLLM DB from growing in size, which will help with performance (prevent health checks from failing).

Need an Integration? Get in Touch​