pub fn compute_batch_size_from_memory( memory_mb: usize, schema: &SchemaRef, ) -> usize
Compute batch_size from a memory target in MB and estimated row size.