diff --git a/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py b/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py index 4908295ca..36ba90db5 100644 --- a/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py +++ b/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py @@ -508,6 +508,7 @@ class SQLAlchemyAdapter: await self.engine.dispose(close=True) # Wait for the database connections to close and release the file (Windows) import gc + gc.collect() # await asyncio.sleep(2) db_directory = path.dirname(self.db_path)