Skip to content

Commit

Permalink
fix: Change default query idle time and fetch size
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Murzin <diralik@yandex.ru>
  • Loading branch information
dima74 committed Jul 25, 2024
1 parent 60d0977 commit d2620ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/src/parameters/defaults.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub mod torii {
use nonzero_ext::nonzero;

pub const MAX_CONTENT_LEN: Bytes<u64> = Bytes(2_u64.pow(20) * 16);
pub const QUERY_IDLE_TIME: Duration = Duration::from_secs(30);
pub const QUERY_IDLE_TIME: Duration = Duration::from_secs(10);
pub const QUERY_STORE_CAPACITY: NonZeroUsize = nonzero!(128usize);
pub const QUERY_STORE_CAPACITY_PER_USER: NonZeroUsize = nonzero!(128usize);
}
Expand Down
2 changes: 1 addition & 1 deletion data_model/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub mod predicate;
pub mod sorting;

/// Default value for `fetch_size` parameter in queries.
pub const DEFAULT_FETCH_SIZE: NonZeroU32 = nonzero!(10_u32);
pub const DEFAULT_FETCH_SIZE: NonZeroU32 = nonzero!(100_u32);

/// Max value for `fetch_size` parameter in queries.
pub const MAX_FETCH_SIZE: NonZeroU32 = nonzero!(10_000_u32);
Expand Down

0 comments on commit d2620ed

Please sign in to comment.