Edge Concurrency Case

If there is currently a request being processed on a graph in one thread and somebody calls “GRAPH.DELETE graph” from a different thread, what will happen?

I had trouble while reading through the source code but couldn’t find if GRAPH.DELETE takes a writer’s lock on the graph.

Each graph is protected with an atomic reference counter, so if you try to delete one (using DEL or GRAPH.DELETE) while query execution is in progress, the query should complete before the deletion is processed.

1 Like