eMoflon / emoflon-neo

A Neo4j-based implementation of eMoflon
Eclipse Public License 2.0
6 stars 2 forks source link

Change execution order of attribute assignments in rules #211

Closed hijan94 closed 5 years ago

hijan94 commented 5 years ago

DELETE -> SET -> CREATE

anthonyanjorin commented 5 years ago

Why only attribute assignments?

hijan94 commented 5 years ago

Hm, what else? Maybe the title of the issue is a bit confusing. Currently i perform DELETE, CREATE, SET, but as have suggested, it should be DELETE, SET, CREATE. In each of these clauses, all deleted, created, or altered element (nodes, relations, attributes) is included.

hijan94 commented 5 years ago

@anthonyanjorin the order DELETE, SET, CREATE does not work for green nodes or relations since they are not created at this stage of query execution. Therefore, i can not process any attribute assignments in this order. I would suggest to stay at the DELETE, CREATE, SET ordering or i have to filter all elements in two separat SET clauses depending on if it is an assignment to a green or black element.

anthonyanjorin commented 5 years ago

Ok - thanks for trying! Let's leave it as it is then. Neo4j seems to be able to handle things properly.