-
Notifications
You must be signed in to change notification settings - Fork 63
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
Conversation
60c2ca7
to
42e89eb
Compare
@@ -46,7 +49,7 @@ | |||
import org.kitodo.production.workflow.model.Converter; | |||
|
|||
@Named("TemplateForm") | |||
@SessionScoped | |||
@ViewScoped |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Kitodo/src/main/java/org/kitodo/production/forms/TemplateForm.java
Outdated
Show resolved
Hide resolved
Kitodo/src/main/java/org/kitodo/production/forms/TemplateForm.java
Outdated
Show resolved
Hide resolved
Maybe this changes should be applied for the 3.8.x branch too as this change is a good speed improvement. |
Backport: #6401 |
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.