berrybeat / Neo4j.Berries.OGM

This repository adds an OGM functionality for csharp
https://berrybeat.com/
MIT License
16 stars 2 forks source link

Optimize the creation #22

Closed farhadnowzari closed 2 months ago

farhadnowzari commented 2 months ago

Is your feature request related to a problem? Please describe. At the moment on creation, a new CREATE statement is added per item. For large data this leads to an issue with neo4j, where the query will either takes too long or neo4j throws Not enough stack size exception.

Describe the solution you'd like The solution would be to optimize the Create string builder with UNWIND command, to push the objects as an input and do the loop inside neo4j.