From 0b2c3d06c70a39e6001677776d36b0e1b678c732 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 12 Aug 2025 15:24:06 +0800 Subject: [PATCH] - Remove redundant collection listing check --- lightrag/kg/milvus_impl.py | 12 ------------ lightrag/lightrag.py | 1 + 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/lightrag/kg/milvus_impl.py b/lightrag/kg/milvus_impl.py index 7c4edcd3..db5ab6a7 100644 --- a/lightrag/kg/milvus_impl.py +++ b/lightrag/kg/milvus_impl.py @@ -589,18 +589,6 @@ class MilvusVectorDBStorage(BaseVectorStorage): """Create collection if not exists and check existing collection compatibility""" try: - # First, list all collections to see what actually exists - try: - all_collections = self._client.list_collections() - logger.debug( - f"[{self.workspace}] All collections in database: {all_collections}" - ) - except Exception as list_error: - logger.warning( - f"[{self.workspace}] Could not list collections: {list_error}" - ) - all_collections = [] - # Check if our specific collection exists collection_exists = self._client.has_collection(self.final_namespace) logger.info( diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index 7421a4fd..d6822296 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -545,6 +545,7 @@ class LightRAG: self.doc_status, ): if storage: + # logger.debug(f"Initializing storage: {storage}") await storage.initialize() self._storages_status = StoragesStatus.INITIALIZED