From 7f62daebd2daf4a351a38ac23f0d825fcdb4104a Mon Sep 17 00:00:00 2001 From: Igor Ilic <30923996+dexters1@users.noreply.github.com> Date: Wed, 16 Jul 2025 13:17:37 +0200 Subject: [PATCH] refactor: Add Kuzu buffer change (#1094) ## Description Change Kuzu default buffer size ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin. --- cognee/infrastructure/databases/graph/kuzu/adapter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cognee/infrastructure/databases/graph/kuzu/adapter.py b/cognee/infrastructure/databases/graph/kuzu/adapter.py index a8db967c5..b31969c95 100644 --- a/cognee/infrastructure/databases/graph/kuzu/adapter.py +++ b/cognee/infrastructure/databases/graph/kuzu/adapter.py @@ -54,8 +54,8 @@ class KuzuAdapter(GraphDBInterface): self.db = Database( self.temp_graph_file, - buffer_pool_size=256 * 1024 * 1024, # 256MB buffer pool - max_db_size=1024 * 1024 * 1024, + buffer_pool_size=2048 * 1024 * 1024, # 2048MB buffer pool + max_db_size=4096 * 1024 * 1024, ) else: # Ensure the parent directory exists before creating the database