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

Speed up process template page #6377

Merged
merged 3 commits into from
Feb 7, 2025
Merged

Conversation

BartChris
Copy link
Collaborator

@BartChris BartChris commented Jan 23, 2025

Fixes #5336

Using a custom HQL-query should speed up the retrieval of the process templates significantly. We only have to compute the template usage once and reuse it in the view.

@BartChris BartChris force-pushed the speed_up_template_list branch from 60c2ca7 to 42e89eb Compare February 3, 2025 09:02
@BartChris BartChris marked this pull request as ready for review February 3, 2025 09:25
@@ -46,7 +49,7 @@
import org.kitodo.production.workflow.model.Converter;

@Named("TemplateForm")
@SessionScoped
@ViewScoped
Copy link
Collaborator Author

@BartChris BartChris Feb 3, 2025

Choose a reason for hiding this comment

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

Switch to ViewScoped to ensure that changes to templates are reflected in the process template list.

Copy link
Collaborator

@henning-gerhardt henning-gerhardt left a comment

Choose a reason for hiding this comment

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

Displaying the process template page is now significant faster. Good work. Code changes looks good except two unused import statements which can be removed.

@henning-gerhardt
Copy link
Collaborator

Maybe this changes should be applied for the 3.8.x branch too as this change is a good speed improvement.

@BartChris
Copy link
Collaborator Author

Backport: #6401

@solth solth merged commit de9e235 into kitodo:main Feb 7, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow process template page access
3 participants