Skip to content

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Jun 25, 2024

Reading a file from disk or possibly remote storage can be costly. We can store the content in cache with the (fileId, etag) as key so we only return the result as long as the file content is unchanged.

@juliusknorr juliusknorr force-pushed the perf/cache-workspace-result branch from 733ffaa to e2e1f3e Compare June 25, 2024 16:40
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good to me.

I just wonder how often it happens that the same folder gets opened again and again in the files app within one hour.

@juliusknorr
Copy link
Member Author

It could also be mobile clients sending a propfind with the rich workspace property and for shared folders, group folders it will also help to cache between users. Likely not a huge improvement but might still contribute to less time spent on storage operations.

@juliusknorr juliusknorr merged commit fa15cdd into main Jun 26, 2024
@juliusknorr juliusknorr deleted the perf/cache-workspace-result branch June 26, 2024 12:30
Comment on lines +105 to +106
} catch (GenericFileException|NotPermittedException|LockedException $e) {
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be logged at least in debug, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants