Another Word For It Patrick Durusau on Topic Maps and Semantic Diversity

September 15, 2011

Pagination with Neo4j

Filed under: Cypher,Neo4j,py2neo — Patrick Durusau @ 7:53 pm

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!).

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress