Pagination with Neo4j by Nigel Small.
I saw this on a retweet from Peter Neubauer.
Following a request on Twitter, I have spent a few hours putting together a quick article on pagination using Neo4j and more specifically the Cypher query language. Predictably, this is written from a Python standpoint and uses py2neo, but the theory should hold true for any language since all the clever bits come from Cypher.
Fundamentally, the method described here exploits the order by, skip and limit features of Cypher in order to return only a segment of the total results from the overall result set. These features are available in the latest stable version of Neo4j at the time of writing, so if you don’t have access to them already, maybe it’s time to consider an upgrade!
The longer you wait to upgrade, the more stuff you will have to learn! 😉
Please upgrade responsibly (to a stable version, but if you are brave, not!).