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

fix: Remove legacy optimization when checking encryption status #868

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

artonge
Copy link
Collaborator

@artonge artonge commented Jan 16, 2025

This is causing performance issues because for non encrypted nodes, we were checking all upper folders in the hierarchy.

Also, this seems unnecessary as top and sub E2EE folders are marked as encrypted, so checking for the current node or its parent folder is enough to have the answer.

Partially introduced by #316 which was an improvement at the time by introducing caching.

Client marking sub folders as encrypted:

  • Desktop
  • Android
  • iOS

@artonge artonge force-pushed the artonge/fix/remove_legacy_optimization branch from de89a50 to 56993c2 Compare January 16, 2025 15:25
This is causing performance issues because for non encrypted nodes, we were checking all upper folders in the hierarchy.

Also, this seems unnecessary as top and sub E2EE folders are marked as encrypted, so checking for the current node or its parent folder is enough to have the answer.

Partially introduced by #316 which was an improvement at the time by introducing caching.

Signed-off-by: Louis Chemineau <[email protected]>
@artonge artonge force-pushed the artonge/fix/remove_legacy_optimization branch from 56993c2 to f5c5a93 Compare January 16, 2025 16:02
@artonge artonge marked this pull request as ready for review January 16, 2025 16:03
@artonge artonge self-assigned this Jan 16, 2025
@artonge artonge added 3. to review Waiting for reviews php Pending a documentation update/fix performances Performances issues and optimisations labels Jan 16, 2025
@artonge artonge added this to the Nextcloud 31 milestone Jan 16, 2025
@artonge artonge added the technical debt Technical issue label Jan 16, 2025
@artonge artonge requested a review from come-nc January 16, 2025 16:07
@artonge artonge merged commit 3314dd4 into master Jan 16, 2025
44 checks passed
@artonge artonge deleted the artonge/fix/remove_legacy_optimization branch January 16, 2025 16:21
@artonge
Copy link
Collaborator Author

artonge commented Jan 20, 2025

/backport to stable30

@backportbot backportbot bot added the backport-request Pending backport by the backport-bot label Jan 20, 2025
Copy link

backportbot bot commented Jan 20, 2025

The backport to stable30 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable30
git pull origin stable30

# Create the new backport branch
git checkout -b backport/868/stable30

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick f5c5a936

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/868/stable30

Error: No changes found in backport branch


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

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 backport-request Pending backport by the backport-bot performances Performances issues and optimisations php Pending a documentation update/fix technical debt Technical issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants