nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.54k stars 4.08k forks source link

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

Open icewind1991 opened 3 days ago

icewind1991 commented 3 days ago

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.