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

Only save predictions on completion #66

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Only save predictions on completion #66

merged 1 commit into from
Dec 8, 2023

Conversation

aron
Copy link
Contributor

@aron aron commented Dec 8, 2023

We now only store the prediction if it succeeds/fails. This reduces the amount of bandwidth we consume in the application when polling as there's nothing in the db we only return a placeholder.

As far as I can tell the only user visible result this will have is that predictions will not appear in the user list until they have completed.

Copy link

vercel bot commented Dec 8, 2023

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

Name Status Preview Updated (UTC)
zoo ✅ Ready (Inspect) Visit Preview Dec 8, 2023 2:49pm

@aron
Copy link
Contributor Author

aron commented Dec 8, 2023

@cbh123 I've tested this on the branch it seems to work. If we run into issues we can easily revert. The /memories tab is currently timing out. We'll need indexes or to truncate the predictions table to make this work again.

@aron aron merged commit f4a7dd5 into main Dec 8, 2023
3 checks passed
@aron aron deleted the success-only-hook branch December 8, 2023 15:02
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