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
Post a Comment