cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Anchor a request on a relationship with 4.3?

Hello there

Simple questions for the developers, regarding only the recent version of Neo4j 4.3
As I read, Neo4j can now create index on a relationship properties, so...

Can we anchor a request on a relationship?

That might change a lot of things, mostly drastically reducing the amount of graph refactoring you need to do to answer new questions related to data inside of these relationships.

1 ACCEPTED SOLUTION

Hi there, yes! After creating your index on a relationship type and property (or properties), you can now make that your starting point into the graph. You can view the EXPLAIN plan to make sure the index lookup is being used, and if not you can provide an index hint to nudge the planner into using it.

View solution in original post

3 REPLIES 3

Hi there, yes! After creating your index on a relationship type and property (or properties), you can now make that your starting point into the graph. You can view the EXPLAIN plan to make sure the index lookup is being used, and if not you can provide an index hint to nudge the planner into using it.

It's a huge improvement, it means not only less refactoring but also it's easier to keep a graph humanly readable or intuitive while being able to ask more stuff

If I'm right?