-
Notifications
You must be signed in to change notification settings - Fork 56
Performance tuning/Recommendations #177
Performance tuning/Recommendations #177
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From this it looks like all headers that do not have a space between them and the title do not show up as headers.
Still need to review more, will continue this week.
PerformanceTuning.md
Outdated
|
||
### Warm up | ||
|
||
The graphs are constructed during indexing, but they are loaded into memory during the first search. The way search works in Lucene is that each segment is searched sequentially (so, for k-NN, each segment returns up to k nearest neighbors of the query point) and the results are aggregated together and ranked based on the score of each result (higher score --> better result). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there documentation for this?
PerformanceTuning.md
Outdated
|
||
### Warm up | ||
|
||
The graphs are constructed during indexing, but they are loaded into memory during the first search. The way search works in Lucene is that each segment is searched sequentially (so, for k-NN, each segment returns up to k nearest neighbors of the query point) and the results are aggregated together and ranked based on the score of each result (higher score --> better result). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, makes sense thanks
|
||
In order to avoid this latency penalty during your first queries, a user should use the warmup API on the indices they want to search. The API looks like this: | ||
|
||
GET /_opendistro/_knn/warmup/index1,index2,index3?pretty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: wrap in code block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
PerformanceTuning.md
Outdated
|
||
The following steps could help improve indexing performance especially when you plan to index large number of vectors at once. | ||
|
||
1 Disable refresh interval (Default = 1 sec) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: add "." after numbering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for adding this @vamshin!
Issue #, if available:
#64
Description of changes:
Adds Performance tuning/Recommendations to improve indexing/search performance.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.