Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.0-M7
-
None
-
None
Description
When we start the server the very first time, the initialization tries to load the entries which have an administrative-role AT. It uses the (administrative-role=*) filter, which uses the Presence index. The evaluation done in the backend considers that we have an Long.MAX_INTEGER candidate.
That will result in a full scan, which is extremely costly when we have a lot of entries.
We should add an index for the administrative-role, and for some other AT that are loaded in cache at startup.