···1818use tokio::{sync::mpsc::Receiver, time::sleep};
19192020/// Commit the RW batch immediately if this nubmer of events have been read off the mod queue
2121-const MAX_BATCHED_RW_EVENTS: usize = 96;
2121+const MAX_BATCHED_RW_EVENTS: usize = 18;
22222323/// Commit the RW batch immediately if this number of records is reached
2424///
2525/// there are probably some efficiency gains for higher, at cost of more memory.
2626/// interestingly, this kind of sets a priority weight for the RW loop:
2727/// - doing more work whenever scheduled means getting more CPU time in general
2828-const MAX_BATCHED_RW_ITEMS: usize = 32;
2828+///
2929+/// this is higher than [MAX_BATCHED_RW_EVENTS] because account-deletes can have lots of items
3030+const MAX_BATCHED_RW_ITEMS: usize = 36;
29313032/**
3133 * data format, roughly: