Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor 'check_view_exists' logic #5659

Merged
merged 4 commits into from
Sep 12, 2024
Merged

Conversation

krrishdholakia
Copy link
Contributor

@krrishdholakia krrishdholakia commented Sep 12, 2024

Title

fix(proxy/utils.py): comment out auto-upsert logic in check_view_exists

  • index startTime and endUser in SpendLogs table for query optimization
  • create separate script for inserting views
  • fix DailyTagsSpend check
  • fix global spend monthly time period to be 30d not 20d

Relevant issues

Prevents proxy from failing on startup due to faulty logic
Prevent UI timeout errors due to large SpendLogs Table

Type

🐛 Bug Fix
🧹 Refactoring

Changes

[REQUIRED] Testing - Attach a screenshot of any new tests passing locall

If UI changes, send a screenshot/GIF of working UI fixes

Prevents proxy from failing on startup due to faulty logic
Copy link

vercel bot commented Sep 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 6:48pm

@krrishdholakia
Copy link
Contributor Author

Pending

Run on db with 14M rows, and confirm no ui timeouts

@krrishdholakia
Copy link
Contributor Author

Ui timeouts still occur at 1m+ rows in spend logs. But the proxy startup problem is gone.

Let's merge this PR and start another one to build on this -> solve the ui timeout issue.

@krrishdholakia krrishdholakia merged commit c76d2c6 into main Sep 12, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant