You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation, edges from a subquery should be done as:
DELETE EDGE E WHERE @rid IN (SELECTFROM#11:0)
Now, if record 11:0 has been deleted or if the subquery returns empty results, orientdb will scan the entire edge class and you'll get a warning that the query returned a lot of records, which of course is bad for performance. Obviously, if the subquery is empty the command should just terminate. I'm using orientdb 2.1.13.
For DELETE Vertex this is not the case.
DELETE VERTEX FROM (Selectfrom DELETED_RECORD)
works like a charm.
FYI, what we're trying to do here is to lock the record during delete which is actually a part of #3595 .
DELETE VERTEX FROM (Selectfrom SOME_VERTEX LOCK RECORD)
DELETE EDGE E WHERE @rid IN (SELECTFROM SOME_EDGE LOCK RECORD)
The text was updated successfully, but these errors were encountered:
According to the documentation, edges from a subquery should be done as:
Now, if record 11:0 has been deleted or if the subquery returns empty results, orientdb will scan the entire edge class and you'll get a warning that the query returned a lot of records, which of course is bad for performance. Obviously, if the subquery is empty the command should just terminate. I'm using orientdb 2.1.13.
For DELETE Vertex this is not the case.
works like a charm.
FYI, what we're trying to do here is to lock the record during delete which is actually a part of #3595 .
The text was updated successfully, but these errors were encountered: