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 de verification de droit améliorable #1074

Closed
simonLouvet opened this issue Nov 9, 2022 · 1 comment
Closed

performance de verification de droit améliorable #1074

simonLouvet opened this issue Nov 9, 2022 · 1 comment

Comments

@simonLouvet
Copy link
Contributor

simonLouvet commented Nov 9, 2022

Problématique
performance de verification de droit améliorable

Composants concernés
@semapps/webacl

Proposition
passer de

SELECT ?auth ?p ?o
WHERE { GRAPH <${graphName}> {
  ?auth a acl:Authorization ;
    acl:mode acl:${mode};
    acl:${accesToOrDefault} <${resource}>;
    ?p ?o.
} }

à

SELECT ?auth ?p ?o
WHERE { GRAPH <${graphName}> {
  ?auth acl:${accesToOrDefault} <${resource}>;
    a acl:Authorization ;
    acl:mode acl:${mode};
    ?p ?o.
} }

la plus grande restriction dans les premiers arguments du where permet à jena d'explorer moins de triplets

@simonLouvet
Copy link
Contributor Author

simonLouvet commented Nov 9, 2022

Cette amélioration de performance est particulièrement utile lors de la génération du cache des droits utilisateur sur des volume important de données. J'ai un cas réel en production qui prends plusieurs heure lors de la génération du cache d'ACL pour un user.

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

2 participants