Skip to content

Commit a4a6cce

Browse files
committed
Reduce the size of the activity tracker batches
1 parent ea0a563 commit a4a6cce

File tree

1 file changed

+2
-2
lines changed
  • crates/handlers/src/activity_tracker

1 file changed

+2
-2
lines changed

crates/handlers/src/activity_tracker/worker.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ use crate::{
2525
/// database automatically.
2626
///
2727
/// The [`ActivityRecord`] structure plus the key in the [`HashMap`] takes less
28-
/// than 100 bytes, so this should allocate around a megabyte of memory.
29-
static MAX_PENDING_RECORDS: usize = 10_000;
28+
/// than 100 bytes, so this should allocate around 100kB of memory.
29+
static MAX_PENDING_RECORDS: usize = 1000;
3030

3131
const TYPE: Key = Key::from_static_str("type");
3232
const SESSION_KIND: Key = Key::from_static_str("session_kind");

0 commit comments

Comments
 (0)