DefaultSearchOptions is used in a lot of places such as local ingester searches. It is important in these cases to set a reasonable read buffer size and count to prevent constant tiny readranges against the local backend. TODO: Note that there is another method of creating "default search options" t
()
| 51 | // TODO: Note that there is another method of creating "default search options" that looks like this: |
| 52 | // tempodb.SearchConfig{}.ApplyToOptions(&searchOpts). we should consolidate these. |
| 53 | func DefaultSearchOptions() SearchOptions { |
| 54 | return SearchOptions{ |
| 55 | ReadBufferCount: 32, |
| 56 | ReadBufferSize: 1024 * 1024, |
| 57 | ChunkSizeBytes: 4 * 1024 * 1024, |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | func DefaultSearchOptionsWithMaxBytes(maxBytes int) SearchOptions { |
| 62 | opts := DefaultSearchOptions() |
no outgoing calls