@rouven.bauer I have made a similar observation using py2neo==2021.2.3 on a "Neo4j Community 4.4.3" database.
If I do something like
match = Vertex.match(graph).where(test_property='test')
for vertex in match:
print(vertex.name)
then the stream...
You’re welcome Don’t forget to put an index on last_imported if you go along with this solution. That will speed up the deletion step considerably, I think.
Maybe we had a misunderstanding. To make clear what I meant, let’s call the proposed property last_imported. As the last step of your import script you would then run something like
MATCH (n) WHERE n.last_imported < datetime() - duration({hours:24})
...
If you don’t want to delete all nodes and relationships, then create all of them again, you could add a property lastUpdated which is set during the update-import. After the import-update you could thus delete only the nodes which where not updated w...
Hi Andy, it is possible to access the nodes in path p with nodes(p). That function returns a list of nodes.
However, albeit without knowing what you are trying to achieve, your approach seems overly complicated to me and this filtering will most like...