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
I have had to hack the cypher produced for queries in order to take full advantage of the FILTER_AS_MATCH when using first/limit.
I take the ORDER BY, LIMIT and OFFSET which are at the end of the RETURN statement, and move them before the RETURN (adding a WITH * to make it work). This results in ~10x fewer DB hits on our data. This is doubly important in cases where we have a lot of sub-selections in the query. There is no point loading all of the relations for this label in the database, only to return the first 5 nodes.
I have no idea if it works for all your use cases like it did mine, but the improvement is significant enough for me to bring it up.
The text was updated successfully, but these errors were encountered:
I have had to hack the cypher produced for queries in order to take full advantage of the FILTER_AS_MATCH when using first/limit.
I take the ORDER BY, LIMIT and OFFSET which are at the end of the RETURN statement, and move them before the RETURN (adding a WITH * to make it work). This results in ~10x fewer DB hits on our data. This is doubly important in cases where we have a lot of sub-selections in the query. There is no point loading all of the relations for this label in the database, only to return the first 5 nodes.
I have no idea if it works for all your use cases like it did mine, but the improvement is significant enough for me to bring it up.
The text was updated successfully, but these errors were encountered: