microsoft / DiskANN

Graph-structured Indices for Scalable, Fast, Fresh and Filtered Approximate Nearest Neighbor Search
Other
1.02k stars 208 forks source link

Fix the wrong behavior when saving tags without calling any lazy_delete. #519

Closed NingyuanChen closed 5 months ago

NingyuanChen commented 5 months ago

When there is no lazy_deletes called, _data_compacted will remain true, which will make compact_data no-op. However, save tags has the assumption that compact_data is called so that tags are in the right position.