Skip to content

Commit

Permalink
Removed references to max_concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
alexthomas93 committed Oct 23, 2024
1 parent e8328bb commit 8f44e5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions docs/source/user_guide_kg_builder.rst
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,8 @@ to a Neo4j database:
graph = Neo4jGraph(nodes=[], relationships=[])
await writer.run(graph)
To improve insert performances, it is possible to act on two parameters:

- `batch_size`: the number of nodes/relationships to be processed in each batch (default is 1000).
- `max_concurrency`: the max number of concurrent queries (default is 5).
Adjust the batch_size parameter of `Neo4jWriter` to optimize insert performance.
This parameter controls the number of nodes or relationships inserted per batch, with a default value of 1000.

See :ref:`neo4jgraph`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ async def main(driver: neo4j.Driver, graph: Neo4jGraph) -> KGWriterModel:
driver,
# optionally, configure the neo4j database
# neo4j_database="neo4j",
# you can tune batch_size and max_concurrency to
# you can tune batch_size to
# improve speed
# batch_size=1000,
# max_concurrency=5,
)
result = await writer.run(graph=graph)
return result

0 comments on commit 8f44e5d

Please sign in to comment.