Unverified Commit cad1532f authored by John Wang's avatar John Wang Committed by GitHub

feat: optimize index_struct copy (#442)

parent 951afcaa
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment