Best way to make a query fail

25 views
Skip to first unread message

Daniel C. Weber

unread,
Jan 19, 2022, 12:19:27 PM1/19/22
to Gremlin-users
In Db-Systems that have "transaction-per-query" semantics, it is possible to implement a notion of failure (with subsequent rollback) by e.g. adding two vertices with the same id at the right place in the query.

Two questions arise:
1. Is this currently the smartest/smallest/fastest/etc. way to make a query fail early?
2. Has something like a 'throw()/fail()/rollback()' operator ever been discussed?

Regards,
dcw

Stephen Mallette

unread,
Jan 19, 2022, 12:25:32 PM1/19/22
to gremli...@googlegroups.com

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/ad49759c-8ae8-4bff-9ae0-4e88e4c106a3n%40googlegroups.com.

Daniel C. Weber

unread,
Jan 19, 2022, 12:33:23 PM1/19/22
to Gremlin-users
Absolutely wonderful!

Thanks a lot!
Reply all
Reply to author
Forward
0 new messages