Daniel Keir Haywood created ISIS-2888:
-----------------------------------------

             Summary: Use EclipseLink for caching of "findByUsername" and 
similar security queries.
                 Key: ISIS-2888
                 URL: https://issues.apache.org/jira/browse/ISIS-2888
             Project: Isis
          Issue Type: Improvement
            Reporter: Daniel Keir Haywood
             Fix For: 2.0.0


things attempted:
 
- various EclipseLink settings and did find with 
eclipselink.profiler=QueryMonitor that I could reload the dashboard page and 
see some output.
This showed that caching was happening for primary key based requests but not 
others.
 
- Using XML to configure the named queries gave an error about the class not 
having an id and seemed to be to do with the inheritance and where things were 
set - various combinations of which class used didn't help.
 
- tried to no avail finding a way to have my own named queries so I could set 
the hint on them.
 
- tried again with wrapping the findByUsername with queryResultsCache but that 
gave errors about not being in an interaction context when setting up 
queryResultsCache bean.
 
 
Final solution that was hacked: rudimentary caching in overridden version of 
AuthorizorSecman.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to