Is there a thread safety issue, if add and remove_ids operate on different threads simultaneously using IndexFlat? Thank you.
Yes, synchronization is required for any concurrent mutation on an index, regardless of its implementation. See the wiki page on Thread safety.
Faiss CPU indices are thread-safe for concurrent searches, and other operations that do not change the index. A multithreaded use of functions that change the index needs to implement mutual exclusion.
Thank you for your answer.
No activity, closing.
Most helpful comment
Yes, synchronization is required for any concurrent mutation on an index, regardless of its implementation. See the wiki page on Thread safety.