-
Notifications
You must be signed in to change notification settings - Fork 20
Fix OutOfMemoryError in reference component #186
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
base: develop-sling12
Are you sure you want to change the base?
Conversation
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.
This seems to fix the backend-part of the issue 🚀 .
@reggie7 please have a look at my question.
Im not sure though why the frontend even allows to reference a page to itself.
Is there an issue to fix this? that it shouldn't be allowed in the first place
core/src/main/java/com/themecleanflex/models/ReferenceModel.java
Outdated
Show resolved
Hide resolved
core/src/main/java/com/themecleanflex/models/ReferenceModel.java
Outdated
Show resolved
Hide resolved
@Felix-Puetz hmm, we can discuss that. What do you think @reusr1? |
@Felix-Puetz I think a ref to the page itself is ok |
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.
currently a no, need to figure out if this change has a performance implication/if there is no cleaner way to handle this
@reggie7 can we not solve this much more performant with the introduction of a threadlocal variable at themeclean-flex/core/src/main/java/com/themecleanflex/models/ReferenceModel.java Line 576 in 08ce5cc
|
Sure, take your time, it is indeed doing a recursive search to avoid recursive includes. |
@reggie7 I think you missed my last comment - I am suggesting to use a threadlocal variable to handle this instead |
…eclean-flex into issues/163-reference-OutOfMemoryError
As requested in PR review
As it should have been done
Fix for #163, but I had to use #184 fix for #164. The core fix is this commit.