feat: optimize index_struct copy (#442)

This commit is contained in:
John Wang 2023-06-25 17:52:22 +08:00 committed by GitHub
parent 951afcaaed
commit cad1532f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,7 @@ class BaseVectorIndex(BaseIndex):
documents.append(document)
origin_index_struct = self.dataset.index_struct
origin_index_struct = self.dataset.index_struct[:]
self.dataset.index_struct = None
if documents: