lowMemory static method
Configuration optimized for low memory usage.
Features:
- Small cache sizes
- Frequent cache cleanup
- Minimal batch sizes
- Auto-sync disabled by default
Implementation
static DatumConfig lowMemory() {
return const DatumConfig(
autoSyncInterval: Duration(hours: 2),
autoStartSync: false,
syncTimeout: Duration(minutes: 2),
enableLogging: true,
logLevel: LogLevel.info,
enablePerformanceLogging: false,
changeCacheDuration: Duration(seconds: 30),
maxChangeCacheSize: 200,
changeCacheCleanupInterval: Duration(seconds: 30),
remoteSyncBatchSize: 25,
remoteStreamBatchSize: 10,
progressEventFrequency: 10,
remoteEventDebounceTime: Duration(milliseconds: 10),
);
}