Reduce the size of the activity tracker batches

This commit is contained in:
Quentin Gliech
2025-04-28 10:37:23 +02:00
parent 009c4baa6c
commit a6f6cfadb0

View File

@@ -25,8 +25,8 @@ use crate::{
/// database automatically.
///
/// The [`ActivityRecord`] structure plus the key in the [`HashMap`] takes less
/// than 100 bytes, so this should allocate around a megabyte of memory.
static MAX_PENDING_RECORDS: usize = 10_000;
/// than 100 bytes, so this should allocate around 100kB of memory.
static MAX_PENDING_RECORDS: usize = 1000;
const TYPE: Key = Key::from_static_str("type");
const SESSION_KIND: Key = Key::from_static_str("session_kind");