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

Disk quota computation redesign #4351

Closed
AndrewJGaut opened this issue Jan 12, 2023 · 0 comments
Closed

Disk quota computation redesign #4351

AndrewJGaut opened this issue Jan 12, 2023 · 0 comments
Assignees
Labels
p1 Do it in the next two weeks.

Comments

@AndrewJGaut
Copy link
Contributor

Currently, the disk quota for a user is updated using the update_disk_metadata function, which uses the update_user_disk_used function, which re-computes the user's disk quota usage from scratch by just summing the size of all bundles owned by the user.

That's slow. Instead, we'd like to just increment and decrement when necessary. [ADD IN BENCHMARKING STATS -- Some can be seen in the "Speed Up Rm Bundles" PR, since the speedup implemented was to replace update_disk_metadata with more efficinet code.)

@AndrewJGaut AndrewJGaut added the p1 Do it in the next two weeks. label Jan 12, 2023
@AndrewJGaut AndrewJGaut self-assigned this Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p1 Do it in the next two weeks.
Projects
None yet
Development

No branches or pull requests

1 participant