Module batching

Module batching 

Source
Expand description

Batch/bulk operations for high-performance inserts Batching utilities for memory-efficient operations

Provides Ormada-style batching for large querysets to prevent OOM errors.

Constants§

DEFAULT_BATCH_SIZE
Default batch size for bulk operations
DEFAULT_CHUNK_SIZE
Chunk size for iterator streaming
MAX_BATCH_SIZE
Maximum batch size allowed (safety guard)

Functions§

batch_vec
Split a vector into batches
validate_batch_size
Validates batch size and returns safe value