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(workflowengine): Cache query that is performed on every request #36568

Merged
merged 1 commit into from
Feb 13, 2023

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Feb 6, 2023

This will save a query for available workflow engine events. The query itself is also not optimal as it does a not equal check on a text field which cannot use an index, however using caching is probably the easiest for now.

Checklist

@blizzz
Copy link
Member

blizzz commented Feb 6, 2023

labels?

@blizzz blizzz added this to the Nextcloud 26 milestone Feb 6, 2023
@juliusknorr
Copy link
Member Author

Sorry, laggy wifi lost them it seem.

@blizzz
Copy link
Member

blizzz commented Feb 6, 2023

Could add test conditions that cache is read, set and unset.

Copy link
Member

@nickvergessen nickvergessen left a comment

Choose a reason for hiding this comment

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

Had that one on my Todo as well for way too long.

@blizzz blizzz added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 6, 2023
@nickvergessen
Copy link
Member

Could add test conditions that cache is read, set and unset.

@juliushaertl you are up for that? cough

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr
Copy link
Member Author

Added and also covered getAllConfiguredEvents with a test now.

@juliusknorr
Copy link
Member Author

Failure unrelated

@juliusknorr juliusknorr merged commit 8f0849a into master Feb 13, 2023
@juliusknorr juliusknorr deleted the perf/flow-events branch February 13, 2023 07:01
@blizzz blizzz mentioned this pull request Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish performance 🚀
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants