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

Add Order to plan output if it exists #852

Merged
merged 2 commits into from
Oct 23, 2018
Merged

Add Order to plan output if it exists #852

merged 2 commits into from
Oct 23, 2018

Conversation

oskarhane
Copy link
Member

@oskarhane oskarhane commented Oct 22, 2018

Only in neo4j >= 3.5.0 where index backed order by is a thing.

Examples below are for the query: EXPLAIN MATCH (n:Person) WHERE n.age > 18 RETURN n.name ORDER BY n.age

It will show up in the Query Plan like this example: Ordered by n.age
(note that screenshots below have old wording, but the principle is still true)

When connected to neo4j 3.4:

plan 34

On 3.5.0 without index:

plan 35

On 3.5.0 with index:

plan 33

@sherfert
Copy link

Nice!

I would change Order by index into either Ordered by or Row ordering. The word index suggests that the ordering always results from an index, but it can also be inserted after a Sort operation, as in your "On 3.5.0 without index" example.

@akollegger akollegger merged commit 562dc4f into master Oct 23, 2018
@oskarhane oskarhane deleted the order-by-in-plan branch October 23, 2018 09:26
myzero1 pushed a commit to myzero1/neo4j-browser that referenced this pull request May 17, 2019
Add `Order` to plan output if it exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants