feat: optimize index_struct copy (#442)
This commit is contained in:
parent
951afcaaed
commit
cad1532f7c
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ class BaseVectorIndex(BaseIndex):
|
||||||
|
|
||||||
documents.append(document)
|
documents.append(document)
|
||||||
|
|
||||||
origin_index_struct = self.dataset.index_struct
|
origin_index_struct = self.dataset.index_struct[:]
|
||||||
self.dataset.index_struct = None
|
self.dataset.index_struct = None
|
||||||
|
|
||||||
if documents:
|
if documents:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue