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

Improve performance by switching query direction? #252

Open
4 tasks
Syndesi opened this issue Feb 15, 2024 · 0 comments
Open
4 tasks

Improve performance by switching query direction? #252

Syndesi opened this issue Feb 15, 2024 · 0 comments
Labels
Enhancement Improving existing functionalities.
Milestone

Comments

@Syndesi
Copy link
Member

Syndesi commented Feb 15, 2024

Currently all security and access related queries start with the users and then try to find a path to the element(s), which might be an expensive operation, as on average every node has many children. The opposite direction however should be more performant, as most nodes only have a single parent element.

This ticket requires the following tasks:

  • Try to manually create and run a query with the opposite relation direction.
  • Run the existing and new query multiple times for different data sets to find out, if the query speed changes.
    • Cold starts, network latency and caching might affect the performance.
    • Still missing indices will likely affect the performance.
@Syndesi Syndesi added this to the 0.2.0 milestone Feb 15, 2024
@Syndesi Syndesi added the Enhancement Improving existing functionalities. label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improving existing functionalities.
Projects
Status: No status
Development

No branches or pull requests

1 participant