Skip to content

Commit 2a71ee6

Browse files
committed
fix: minor things
1 parent 7cc5194 commit 2a71ee6

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

quickwit/quickwit-search/src/list_fields.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ use crate::{
4141
search_thread_pool,
4242
};
4343

44-
/// QW_FIELD_LIST_SIZE_LIMIT defines a hard limit on the number of fields that
45-
/// can be returned (error otherwise).
46-
///
47-
/// Having many fields can happen when a user is creating fields dynamically in
48-
/// a JSON type with random field names. This leads to huge memory consumption
49-
/// when building the response. This is a workaround until a way is found to
50-
/// prune the long tail of rare fields.
51-
static FIELD_LIST_SIZE_LIMIT: LazyLock<usize> =
52-
LazyLock::new(|| quickwit_common::get_from_env("QW_FIELD_LIST_SIZE_LIMIT", 100_000, false));
53-
5444
const DYNAMIC_FIELD_PREFIX: &str = "_dynamic.";
5545

5646
/// Get the list of fields in the given split.

0 commit comments

Comments
 (0)