How to speed up the search with filtering condition like "id in [...]"? (id is the primary key) #37462
Unanswered
xiaobingxia-at
asked this question in
Q&A and General discussion
Replies: 3 comments 9 replies
-
Is the primary key a varchar field or int64 field? auto-id or not?
I use a sequence id list to test, average latency is no more than 1 second:
|
Beta Was this translation helpful? Give feedback.
8 replies
-
Yes, the 'id' is from 0 to 999999. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As described in the title, How to speed up the search with filtering condition like "id in [...]"? (id is the primary key).
I tried to use STL_SORT key on id, but turns out the search takes 6+ seconds long. (1-million vector collection, id is from [0 to 999,999], search by id in [...80% of all ids...]).
Is there any way to speed it up?
Beta Was this translation helpful? Give feedback.
All reactions