Is there some difference between what you are proposing and: http://tinkerpop.apache.org/docs/current/reference/#drop-step
On Thu, Oct 26, 2017 at 2:18 PM, pieter gmail <pieter.mar...@gmail.com> wrote: > Hi, > > I was wondering if we can add a remove step. Currently to remove elements > I iterate the traversal and call remove on each element. Adding a remove > step will make it possible to optimize removals. > > Its probably less useful for Neo4j and TinkerGraph, not sure about Janus > but for Sqlg, > > g.V().hasLabel("X").rm() will translate to one sql truncate statement. > Currently to do a remove it loads all 'X's and deletes them one by one. Bit > of optimizing with a bulk deletion vibe but it could be way better if there > was a step to optimize. > > Thanks > Pieter >