You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.
Querying ~2000 end nodes without filter (a:Actor) takes around 100ms.
If I add the filter "Actor: {...}" to the actors relationship field the total query time raises up to 30 seconds.
Right now I postprocess the unfiltered data to filter the result manually.
If I start directly on the Movie node and apply the same filter, the query gets resolved immediately.
So somehow it seems like filtering on a second relationship leads to the performance issue.
I'm now querying the movies in a first query upfront and passing the resulting IDs to a second query:
This time the total query time of both queries is below 200ms.
Any idea how I could improve the nested query in the complete example I used in the first place without the need to send two requests?
Thanks!
lfritsche
changed the title
[Question] Performance issue if filtering on relationship end node property
[Question] Query performance issue if fitlering on paths with more than one relation ()-[r1]->()<-[r2]-(n { filter: ... } )
Jan 17, 2021
lfritsche
changed the title
[Question] Query performance issue if fitlering on paths with more than one relation ()-[r1]->()<-[r2]-(n { filter: ... } )
Query performance issue if filtering on paths with more than one relation ()-[r1]->()<-[r2]-(n { filter: ... } )
Jan 17, 2021
Hello,
I'm facing performance issues when filtering on the end-node of a relationship.
Given the following path:
If I want to get all Actors that match certain criteria I'm using a query as follows:
Querying ~2000 end nodes without filter (a:Actor) takes around 100ms.
If I add the filter "Actor: {...}" to the actors relationship field the total query time raises up to 30 seconds.
Right now I postprocess the unfiltered data to filter the result manually.
But am I doing something wrong here?
https://grandstack.io/docs/graphql-filtering/#nested-filter uses
actors_in: ...
to filter within the relationship end node. Is this approach different to my example above?Thank you!
The text was updated successfully, but these errors were encountered: