Neo4j HA - fewer moving parts
With Neo4j 1.9 M01, cluster members communicate directly with each other, based on an implementation of the Paxos consensus protocol for master election. We expect that, when perfected, this simplified approach will provide the same behavior you rely upon now in production, with easier operation.
To find out more about the new setup, look to our docs for an updated overview, operational explanation and a setup tutorial.
DISCLAIMER: This is the first outing for the new HA setup and is intended for evaluation and feedback purposes only. Please do not rely on it in production until Neo4j 1.9.GA.
Setting up a local HA cluster in Neo4j 1.9 from Peter Neubauer on Vimeo.
Feedback is, as always, warmly welcomed on the Neo4j Google Group!
New Pattern Matcher
WITH SKIP/LIMIT/ORDER BYIn the same way that limiting returned results let's you focus on the data matters, Cypher can now apply functions in the WITH clause to cut the number of processed results, resulting in less graph to process and faster queries. See:
ORDER BY m.name desc
Community contributions to CypherBeing able to aggregate a number of results into a single value has been a popular feature request in Cypher. To achieve that, we've added a reduce (or fold) operation that allows you to aggregate data as we can see here:
return reduce( total=0, x in collect(n) : total + x.fun) as total_fun
Thank you Wes Freeman!For this release, a huge thanks goes to community contributor Wes Freeman for tirelessly adding new features into the Cypher language.
He contributed the above reduce() function, then also string functions, and fixed the inconsistent head/tail behavior. Wes also updated the Neo4j console (see above) with syntax highlighting and multiline input. It now also works on IE9 too!
Wizard as you are Wes, we hope you enjoy the Kymera Wand remote control from Michael Hunger. Your Neo4j community T-Shirt is on its way!
The Release docsAs always, all changes are contained in the changelog, all Cypher changes can be found here.
OK, enough talk. Go get Neo4j 1.9.M01 and let us know what you think. Again, please do not use this release in production. This is exclusively for early access to HA with simplified ops.