From 8f44e5d53eb43cb9496c46780bdaccd4f54d1a97 Mon Sep 17 00:00:00 2001 From: Alex Thomas Date: Wed, 23 Oct 2024 16:38:04 +0100 Subject: [PATCH] Removed references to max_concurrency --- docs/source/user_guide_kg_builder.rst | 6 ++---- .../build_graph/components/writers/neo4j_writer.py | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/source/user_guide_kg_builder.rst b/docs/source/user_guide_kg_builder.rst index ab90dba1..206ef226 100644 --- a/docs/source/user_guide_kg_builder.rst +++ b/docs/source/user_guide_kg_builder.rst @@ -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`. diff --git a/examples/customize/build_graph/components/writers/neo4j_writer.py b/examples/customize/build_graph/components/writers/neo4j_writer.py index f85acc20..60dbcea9 100644 --- a/examples/customize/build_graph/components/writers/neo4j_writer.py +++ b/examples/customize/build_graph/components/writers/neo4j_writer.py @@ -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