sourcegraph / zoekt

Fast trigram based code search
Apache License 2.0
736 stars 83 forks source link

index: enable shard merging by default #798

Closed stefanhengl closed 3 months ago

stefanhengl commented 3 months ago

Relates to SPLF-175

This enables shard merging by default for zoekt-sourcegraph-indexserver.

Sourcegraph has been using shard merging in production for several years. We have recently confirmed significant performance improvements for queries which are bound by matchTree construction.

I also remove -merge_max_priority because we have stopped using it.

Use SRC_DISABLE_SHARD_MERGING to disable shard merging.

Test plan: mostly CI, I did some manual testing to confirm that shard merging is enabled by default for zoekt-sourcegraph-indexserver.