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

[bkym7TcZ] Optimise apoc.refactor.cloneSubgraph #674

Merged
merged 4 commits into from
Oct 29, 2024
Merged

Conversation

loveleif
Copy link
Contributor

@loveleif loveleif commented Oct 23, 2024

Add option createNodesInNewTransactions to apoc.refactor.cloneSubgraph that let's you control if nodes are created in inner transactions. Previous behavior was to create each node in a new transaction (relationships were not though, surprisingly). New default behavior is to use the outer transaction for all writes (createNodesInNewTransactions = true gives the old behavior still).

@loveleif loveleif added the dev label Oct 23, 2024
@loveleif loveleif force-pushed the subgraph-performance branch from b84bff8 to 1f4aadb Compare October 23, 2024 11:20
@loveleif loveleif changed the title Optimise apoc.refactor.cloneSubgraph [bkym7TcZ] Optimise apoc.refactor.cloneSubgraph Oct 23, 2024
assertEquals("ff", rel2.getProperty("ee"));
assertEquals("dd", rel2.getProperty("cc"));
assertNotNull(row.get("nodes"));
assertThat(row.get("nodes"))
Copy link
Contributor Author

@loveleif loveleif Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some test failures of the unhelpful kind "false was not equal to true". So refactored some tests to help me out understanding that.

Copy link
Contributor

@JoelBergstrand JoelBergstrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!

@loveleif loveleif merged commit 33f6907 into dev Oct 29, 2024
11 checks passed
@loveleif loveleif deleted the subgraph-performance branch October 29, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants