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

Optimized user permission checks on resource. #406

Merged

Conversation

axl8713
Copy link
Collaborator

@axl8713 axl8713 commented Feb 7, 2025

These changes aim to address the slowness reported on the MapStore main page loading in issue #10794.

Previously, the logic for checking resource permissions was inverted, retrieving permissions from user and user group security rules. This approach led to ORM N+1 issues, significantly impacting performance.

The logic has now been restored to check permissions from the resources themselves, reducing database accesses to a minimum.

@axl8713 axl8713 self-assigned this Feb 7, 2025
@afabiani afabiani merged commit f5ab960 into geosolutions-it:master Feb 7, 2025
2 checks passed
@axl8713 axl8713 deleted the security-rules-optimization branch February 7, 2025 16:07
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

Successfully merging this pull request may close these issues.

2 participants