elif_orm/loading/batch_loader/
config.rs

1/// Configuration for batch loading operations
2#[derive(Debug, Clone)]
3pub struct BatchConfig {
4    /// Maximum number of records to load in a single query
5    pub max_batch_size: usize,
6    /// Maximum depth of nested relationships to load
7    pub max_depth: usize,
8    /// Enable parallel execution of independent queries
9    pub parallel_execution: bool,
10    /// Enable query deduplication
11    pub deduplicate_queries: bool,
12}
13
14impl Default for BatchConfig {
15    fn default() -> Self {
16        Self {
17            max_batch_size: 1000,
18            max_depth: 10,
19            parallel_execution: true,
20            deduplicate_queries: true,
21        }
22    }
23}
24
25/// Cache statistics
26#[derive(Debug)]
27pub struct CacheStats {
28    pub cached_queries: usize,
29    pub total_cached_records: usize,
30}