Performance Issue with ProxyGrantingTickets

19 views
Skip to first unread message

Philipp Berger

unread,
May 24, 2018, 6:37:01 AM5/24/18
to CAS Community
Hi all,

there is a massive performance issue with ProxyGrantingTickets with JPA 
TicketRegistry if there are a lot of ProxyGrantingTickets created for one TicketGrantingTicket.

https://github.com/apereo/cas/blob/86aec093d025bac0647f899c59d3fc9a938b4083/core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/ServiceTicketImpl.java#L111

As getTicketGrantingTicket().getProxyGrantingTickets() loads all ProxyGrantingTickets from the Database this takes longer for each grant of a ProxyGrantingTicket.
For JPA (Database) TicketRegistry this can be fixed by simple omitting the line, as the relation is given by the Database. But I'm not sure how this can be fixed for "non-relational" TicketRegistries.

Do you think that it is possible to fix that for all TicketRegistries in general?

Best regards,
Philipp Berger

Reply all
Reply to author
Forward
0 new messages