Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Improve performance of the "fix permissions" step in ncp-update-nc #1688

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

Conversation

powerflo
Copy link

@powerflo powerflo commented Jan 7, 2023

The "fix permissions" step is really slow when the nextcloud folder contains a lot of data. In a docker setup the data directory is in nextcloud/data so the folder can be really big. Even on my small test setup the "fix permissions" step took more than 20 minutes. Using "chmod -R ..." reduces the time to around 20 seconds.

Signed-off-by: Florian Wallner asdf@walura.eu

The "fix permissions" step is really slow when the nextcloud folder contains a lot of data. In a docker setup the data directory is in nextcloud/data so the folder can be really big.
Even on my small test setup the "fix permissions" step took more than 20 minutes.
Using "chmod -R ..." reduces the time to  around 20 seconds.

Signed-off-by: Florian Wallner <asdf@walura.eu>
@theCalcaholic theCalcaholic force-pushed the devel branch 2 times, most recently from 8d181e6 to d9cb654 Compare January 8, 2023 20:16
@delete-merged-branch delete-merged-branch bot deleted the branch nextcloud:devel January 8, 2023 20:50
@theCalcaholic theCalcaholic force-pushed the devel branch 5 times, most recently from dce6a9f to cdf99f6 Compare January 22, 2023 00:21
@delete-merged-branch delete-merged-branch bot deleted the branch nextcloud:devel January 22, 2023 00:56
@delete-merged-branch delete-merged-branch bot deleted the branch nextcloud:devel January 22, 2023 13:10
@delete-merged-branch delete-merged-branch bot deleted the branch nextcloud:devel January 22, 2023 13:47
@theCalcaholic theCalcaholic force-pushed the devel branch 2 times, most recently from ec7a07e to 9ed15a5 Compare October 10, 2023 20:01
@theCalcaholic theCalcaholic force-pushed the devel branch 16 times, most recently from 1ea55df to 287fe06 Compare January 26, 2024 00:10
@TobiGr
Copy link

TobiGr commented Jun 26, 2024

This should really be merged, the fix permissions step took more than 30 minutes on my setup.

@theCalcaholic theCalcaholic force-pushed the devel branch 3 times, most recently from e24d3a0 to f032fd7 Compare August 11, 2024 09:50
@theCalcaholic theCalcaholic force-pushed the devel branch 8 times, most recently from 75bffeb to 31d5ed9 Compare August 24, 2024 17:39
@theCalcaholic theCalcaholic force-pushed the devel branch 17 times, most recently from f14678a to 0e40867 Compare September 7, 2024 00:52
@schoetju
Copy link
Contributor

I would like to join in saying that improving the performance of “fix permissions” would be really helpful. On my instance the step also takes about 15 minutes (and I get nervous when it doesn't seem to continue during the update).
As I understand it, the changes suggested by powerflo are functionally identical with significantly better performance.
@theCalcaholic Is there any concern that the change is patchy or buggy? Can we / community somehow support?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants