PostgreSQL requires functions in indexes to be marked IMMUTABLE. Removed idx_api_usage_user_date composite index that used DATE(). Remaining indexes (user_id, api_type, created_at) still provide good query performance for daily limit checks.
11 KiB
11 KiB