sorting - Slicing neo4j Cypher results in chunks -


i want slice cypher results in chunks of 100 rows, , able retrieve specific chunk.

at moment, way ensure rows not mixed-up user order makes query inefficient ( 3sec. me much)

match (p:person) return p.id order p.id skip {chunk}*100 limit 100 

where {chunk} external parameter identify specific chunk.

any suggestions?

ps: property p.id indexed.

you may try adding label person before extracting chunks , using query like

match (p:chunk:person) p limit 100  match (p) remove p:chunk return * 

Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -