Tips for Optimizing Code Search Performance?

Hi everyone,

I am looking for some advice on optimizing code search performance in Sourcegraph. Recently, I have noticed that searches are getting slower, and I am trying to figure out the best ways to improve this.

Here are a few things I have tried so far ::-

  • Indexing : Ensured that all relevant repositories are indexed properly.
  • Query Optimization : Used more specific queries to reduce the search scope.
  • Resource Allocation : Checked if the server resources are sufficient.

However, I’m still facing issues. Does anyone have experience with improving search speed? Are there any best practices or settings I should be aware of? Any tips or tricks would be greatly appreciated! I also read this blog https://sourcegraph.com/blog/optimizing-a-code-intel-indexer-rpa/ but now I want to learn more about this.

Thanks in advance! :pray:

David Miller

Hey @davidmmiller

Thanks for reaching out. Is this an on-prem (local) instance or our public search?

If public could you provide the search sytanx or URL?

Thanks :slight_smile: