Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Instead of this code
public <T> T getIfExists(Class<T> ssoClass) { ApplicationStateAdapter<T> adapter = getAdapter(ssoClass); return adapter.exists() ? adapter.getOrCreate() : null; }
I've create function getIfExists
public <T> T getIfExists(Class<T> ssoClass) { return getAdapter(ssoClass).getIfExists(); }
This patch increased requests per second on ~7% (from 24 to 26 on huge pages)
Thank mihasik for the idea.
Attachments
Attachments
Issue Links
- causes
-
TAP5-2749 Incorrect behavior of getIfExists in EntityApplicationStatePersistenceStrategy
- Resolved