The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Added concurrent index creation. Added necessary disclaimers to index creation. Index creation is scoped to a single statements and hence Validated index creation in local env
harish8765f99e52fbc46
diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260415120000_health_check_latest_per_model_index/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260415120000_health_check_latest_per_model_index/migration.sqlindex 773b884e835..189191b9018 100644--- a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260415120000_health_check_latest_per_model_index/migration.sql+++ b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260415120000_health_check_latest_per_model_index/migration.sql@@ -1,2 +1,12 @@--- CreateIndex-CREATE INDEX IF NOT EXISTS "LiteLLM_HealthCheckTable_model_id_model_name_checked_at_idx" ON "LiteLLM_HealthCheckTable"("model_id", "model_name", "checked_at" DESC);+-- CreateIndex (CONCURRENTLY)+--+-- Disclaimer:+-- - CREATE INDEX CONCURRENTLY cannot run inside a transaction. This migration must stay a+-- single statement so Prisma Migrate on PostgreSQL can apply it outside a transaction.+-- - Builds are slower and use more I/O than a blocking CREATE INDEX; if the build is+-- interrupted, Postgres may leave an INVALID index that must be dropped and recreated.+-- - Do not edit this file after it has been applied to any database: Prisma checksums+-- migrations; add a new migration instead.+-- - Requires PostgreSQL that supports CONCURRENTLY with IF NOT EXISTS (use a new migration+-- without IF NOT EXISTS if you must support older versions).+CREATE INDEX CONCURRENTLY IF NOT EXISTS "LiteLLM_HealthCheckTable_model_id_model_name_checked_at_idx" ON "LiteLLM_HealthCheckTable"("model_id", "model_name", "checked_at" DESC);