On Aug 12, 2012 12:55 PM, "Michael Hunger" <michael...@neotechnology.com> wrote:
> Optionally if you only need it for migrations you can also just put a property on the node and then during your migration do a full-db scan.
>
I think this is the solution I'll go with then - I didn't know nodes could be found unless they were somehow related to a known one.
Won't loading every node into memory cause out of memory errors? Or is there a way to paginate over nodes using an iterator or something? I'm using neo4j.rb which embeds a Neo4j database within the Ruby process.
Thanks
On Aug 12, 2012 1:18 PM, "Michael Hunger" <michael...@neotechnology.com> wrote:
>
> There is an iterator with GlobalGraphOperations.at(gdb).getAllNodes() or with cypher start n=node(*) ....
>
> Neo4j.rb should also have means of accessing the global iterator.
>
> The processed nodes will be gc'ed if they are no longer referenced.
>
> Michael
>
That's brilliant, thank you.