Faiss: add and remove_ids operate on different threads in IndexFlat at the same time?

Created on 4 Nov 2020  ·  3Comments  ·  Source: facebookresearch/faiss

Is there a thread safety issue, if add and remove_ids operate on different threads simultaneously using IndexFlat? Thank you.

question

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.

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.

All 3 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cherryPotter picture cherryPotter  ·  3Comments

wwmmqq picture wwmmqq  ·  3Comments

hipitt picture hipitt  ·  3Comments

lukedeo picture lukedeo  ·  3Comments

hashyong picture hashyong  ·  3Comments