Open bekkazy-k opened 3 months ago
When you call session.run()
, a transaction is created in the database. So, the data in the stream are from the point where the transaction was created, no changes in future transactions will affect this stream.
A workaround you can use is keeping track of what did you changed in a local state, this way you avoid to update twice the same Node.
@bigmontz I would prefer not to store states in memory. I'm new to Neo4j; is it possible that APOC can help me with streaming reads and updates?
So,
if the changes are based in the content which are being processed, then you can use cypher+apoc for doing it.
If it depends on an external input, than no, unless that can be expressed with parameters to the query.
Here is a method used nodejs-driver:
In the handleData method, I update the statuses of Product and Customer, but in the subsequent records, they are received as not updated. Could you please advise on what I can do? Currently, even if the parent has already been updated in subsequent review nodes, I still get the old data.