You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a race condition around the ef_ search parameter. If I've got two threads running searches concurrently, it's possible that thread A could try to set it to one value, and then have thread B change it to something else before it is able to execute the search.
I'd like to resolve it by adding an ef parameter to searchKnn:
and then adding an overload that has the current signature, and just passes the current value of ef_ in. This would mostly preserve the current behavior for existing code, while adding the option to override that setting for individual searches.
There would be some minor behavior change as a result of reducing the size of the window for that race condition. I assume that would be acceptable?
The text was updated successfully, but these errors were encountered:
There seems to be a race condition around the
ef_
search parameter. If I've got two threads running searches concurrently, it's possible that thread A could try to set it to one value, and then have thread B change it to something else before it is able to execute the search.I'd like to resolve it by adding an
ef
parameter tosearchKnn
:and then adding an overload that has the current signature, and just passes the current value of
ef_
in. This would mostly preserve the current behavior for existing code, while adding the option to override that setting for individual searches.There would be some minor behavior change as a result of reducing the size of the window for that race condition. I assume that would be acceptable?
The text was updated successfully, but these errors were encountered: