Open bfelbo opened 4 years ago
Response from @mdouze on Facebook thread:
it is true that O(1) removal could be implemented for IDMap2,Flat by just moving in the last element. Pleas fill an issue for this, we’ll put it on the todo list.
@mdouze I can also try to take a look at this if you can guide me where to start?
Thanks! The steps are:
IDSelectorArray
https://github.com/facebookresearch/faiss/blob/master/impl/AuxIndexStructures.h#L77 to store the list of elements to remove
Platform
Running on:
Interface:
Feature Request
It would be incredible if you could support the O(1) removal on IndexIDMap2 similar to how it's now added on IndexIVF. IndexFlatL2 is working amazingly for our use case except for the O(N) removal. It would be great to not have to add the complexity of training an IndexIVF to get the O(1) removal.