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

Change project size update #481

Closed
i-oden opened this issue Jun 14, 2021 · 1 comment
Closed

Change project size update #481

i-oden opened this issue Jun 14, 2021 · 1 comment
Labels
cli database Epic 3 Epic 3 - Upload should have Important but not vital Task

Comments

@i-oden
Copy link
Member

i-oden commented Jun 14, 2021

At first - project size updated after each uploaded file. This produced deadlock issues when uploading a lot of small files since it tried to update the same project table field at the same time in multiple requests.

Now - Updates the project size at the end of the upload. This means that if an error occurs during the upload, the project size is not updated.

Fix: Either add a queue (for example) to the API and update the db after each file, or add the project size update to the cleanup after failed upload.

@i-oden
Copy link
Member Author

i-oden commented Jan 11, 2022

Size no longer a column in the Project table.

@i-oden i-oden closed this as completed Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli database Epic 3 Epic 3 - Upload should have Important but not vital Task
Projects
None yet
Development

No branches or pull requests

1 participant