RETRY and WAIT in SQL Queries


RETRY and WAIT are only documented for CREATE EDGE. Is that an oversight, or is the the only operation that supports them? Why would DELETE EDGE not also need them (as it too has to update the affected vertexes)? And technically, why wouldn’t any non-idempotent operation need them?


Hi @eric24

Yes, for now CREATE EDGE is the only statement that supports WAIT/RETRY, but I agree with you that it would make sense also for other non-idempotent statements.
What you can do, as a work-around, is use a BATCH script with COMMIT/RETRY