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

perf: use more optimized way to get user storage info in ocs user info #49476

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

icewind1991
Copy link
Member

Instead of doing a full setup etc. We just get quota directly from the user, and the used space directly from the cache.

This means that we only need to setup the home storage for any user, instead of all storages the user has access to.

This does lead to a minor change in behavior, that for users with unlimited quota, the reported quota no longer falls back to the free space in the data directory. As far as I can tell these fields aren't used in the accounts ui and that behavior isn't something that can be relied on anyway, since s3 based setups (and various others) won't have this behavior anyway.

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Nov 25, 2024
@icewind1991 icewind1991 added this to the Nextcloud 31 milestone Nov 25, 2024
@icewind1991 icewind1991 requested review from come-nc, a team, artonge and yemkareems and removed request for a team November 25, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants