production static method
Configuration optimized for production environments.
Features:
- Minimal logging for performance
- Longer timeouts for reliability
- Optimized batch sizes
- Auto-sync enabled with reasonable intervals
Implementation
static DatumConfig production() {
return const DatumConfig(
autoSyncInterval: Duration(minutes: 30),
autoStartSync: true,
syncTimeout: Duration(minutes: 5),
enableLogging: true,
logLevel: LogLevel.warn,
enablePerformanceLogging: false,
changeCacheDuration: Duration(minutes: 2),
maxChangeCacheSize: 2000,
changeCacheCleanupInterval: Duration(minutes: 5),
remoteSyncBatchSize: 200,
remoteStreamBatchSize: 100,
progressEventFrequency: 100,
remoteEventDebounceTime: Duration(milliseconds: 100),
);
}