massive nodes delete

24 views
Skip to first unread message

jack malkovick

unread,
Mar 15, 2018, 12:01:23 PM3/15/18
to Gremlin-users
Hello

How could I run a

graph.traversal().V().hasLabel("A").drop().iterate()

without getting an OutOfMemoryError?
It there a way to delete one node at a time and save the memory?

Thank you

Robert Dale

unread,
Mar 15, 2018, 12:07:30 PM3/15/18
to gremli...@googlegroups.com
You could limit the results to some acceptable volume:  g.V().hasLabel("A").limit(1000).drop().iterate()

Robert Dale

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/0de390e8-3f54-4bb7-a9e5-317c2561b41e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jack malkovick

unread,
Mar 16, 2018, 4:26:14 AM3/16/18
to Gremlin-users
Oh, right. Batch it.
And probably drop the index before I do it, in order to prevent it's needles update


On Thursday, March 15, 2018 at 6:07:30 PM UTC+2, Robert Dale wrote:
You could limit the results to some acceptable volume:  g.V().hasLabel("A").limit(1000).drop().iterate()

Robert Dale

On Thu, Mar 15, 2018 at 12:01 PM, jack malkovick <sillym...@gmail.com> wrote:
Hello

How could I run a

graph.traversal().V().hasLabel("A").drop().iterate()

without getting an OutOfMemoryError?
It there a way to delete one node at a time and save the memory?

Thank you

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages