-
Notifications
You must be signed in to change notification settings - Fork 55
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
Performance issues with many roles #90
Comments
Hi, has this issue been solved yet? |
As far as I undrerstood this issue should be solved using a rule cache. |
2017 to 2024 and still issue ! |
@kikislater any contribution is welcome! |
You already implement it in Geonode as a docker receipt. Furthermore I have notice that remote services as a layer could slow down GetCapabilities requests in Geonode ... That's the major impact that could slow down geofence |
With many roles for a user, rules readings becomes slow.
With a getCapabilities request and many layers the response takes too much to be generated (around 28 seconds with a user with 20 roles, 200 layers).
Probably the bottle-neck is here, but not sure:
https://github.com/geoserver/geofence/blob/master/src/services/core/services-impl/src/main/java/org/geoserver/geofence/services/RuleReaderServiceImpl.java#L500
We have
n_layers_published * n_roles_for_user
queries.i.e. 200 layer, 20 roles = 4000 queries
The text was updated successfully, but these errors were encountered: