-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Search in collection very slow #15258
Comments
hi there~ from the log we see guarantee timestamp is specified and seems that it always lag behind and the server take around 200ms to wait for the timetick. Did you tried to set guarantee timestamp to 1~ may I check your client side code? @czs007 could you also please follow up this issue? |
/assign @czs007 |
@TheBritishSabrina also, can you give use some data about your scenario, like how many qps, latency, entity count you would expect? |
Hi @xiaofan-luan! Yes, we set guarantee timestamp to various values, including 1. Here are the latest logs, after changing back to 1 and re-running search. The call to collection.search() is currently: res = self.collection.search( We don't have expectations around these metrics, but we would expect it to be considerably lower than these numbers given our data size. |
that's weird, we've expect 15ms latency under your data size(And will be improved to under 10ms for next big release) @czs007 @DragonDriver any suggestions? maybe we should just upgrade pymilvus versions and let user set their consistency level? |
/assign @DragonDriver |
hello, @TheBritishSabrina , we have supported to specify the consistency level when you do a search. See details in Support consistency level when search, and we'll release this commit soon. $ pip install --extra-index-url https://test.pypi.org/simple/ pymilvus==2.0.0rc10.dev12 |
Hi both, we found that we were using pymilvus SDK version 2.0.0rc7, not rc9. Confusingly, using the 'helm list' command showed v2.0.0rc9, so it was hard to diagnose the issue. After updating, the guarantee_timestamp parameter is now recognised and our search time is much quicker! Thanks for your help. |
Is there an existing issue for this?
Environment
Current Behavior
When searching in one small collection, collection.search() takes 0.3-0.4 seconds, where quoted time is 35ms.
Setup:
We have tried changing nprobe to values between 1 and 512, but this has made no difference. Setting guarantee_timestamp to 1 also has no effect.
Querynode logs attached
query-node-log-170122.txt
Expected Behavior
Search should take less than 0.04 seconds.
Steps To Reproduce
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: