Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve apoc.periodic.iterate docs #67

Open
neo-technology-build-agent opened this issue Sep 1, 2022 · 1 comment
Open

Improve apoc.periodic.iterate docs #67

neo-technology-build-agent opened this issue Sep 1, 2022 · 1 comment
Labels

Comments

@neo-technology-build-agent
Copy link
Collaborator

Issue by conker84
Monday May 24, 2021 at 09:23 GMT
Originally opened as neo4j-contrib/neo4j-apoc-procedures#1914


there are many people who have issues with periodic iterate in 4.x when you return nodes and rels from the driving statement and then update them in the update statement.
Since 4.x that might cause the actual change data to be attached to the outer transaction.
So one solution here is to just return id(n) or id(r) from the first query and look them up again in the inner query (e.g. where id(n) = id)
Can we update the docs for that and possibly also add a WARN section that points that out?

@gem-neo4j gem-neo4j added the docs label Apr 6, 2023
@hvub
Copy link
Collaborator

hvub commented Nov 22, 2024

I am not sure I understand the issue. Can you provide a specific example?

Is the issue still present in the current version of the docs, anyway? --> https://neo4j.com/docs/apoc/current/overview/apoc.periodic/apoc.periodic.iterate/

Also users should rather use CALL IN TRANSACTIONS https://neo4j.com/docs/cypher-manual/current/subqueries/subqueries-in-transactions/ rather than apoc.periodic.iterate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants