fix: flush searcher events more often
This change shrinks the searcher event buffer so that in the event of infrequent checkpoints and validations we don't end up with a large buffer (previously up to 1k entries) of large events sitting in memory for a long time.
@@ -75,7 +75,7 @@ const (
// writing to the database. In reality, it is much more likely flushing the buffer happens
// due to the contents of the SearcherEvents than the number of them; see the comment in
// convertSearcherEvent()
- searcherEventBuffer = 1000
+ searcherEventBuffer = 20
)
type experiment struct {
