Skip to content
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

Open
offtherailz opened this issue Mar 31, 2017 · 5 comments
Open

Performance issues with many roles #90

offtherailz opened this issue Mar 31, 2017 · 5 comments

Comments

@offtherailz
Copy link

offtherailz commented Mar 31, 2017

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

@francescoventimiglia1
Copy link

Hi, has this issue been solved yet?

@offtherailz
Copy link
Author

As far as I undrerstood this issue should be solved using a rule cache.
@afabiani can you confirm ?

@kikislater
Copy link

2017 to 2024 and still issue !
With a rdbms backend it's better but will not solve totally the performance impact

@etj
Copy link
Member

etj commented Jan 17, 2024

@kikislater any contribution is welcome!

@kikislater
Copy link

kikislater commented Jan 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants