realTime static method

Configuration for real-time applications.

Features:

  • Very short debounce times
  • Frequent auto-sync
  • Small batch sizes for responsiveness
  • Minimal caching

Implementation

static DatumConfig realTime() {
  return const DatumConfig(
    autoSyncInterval: Duration(seconds: 30),
    autoStartSync: true,
    syncTimeout: Duration(seconds: 30),
    enableLogging: true,
    logLevel: LogLevel.warn,
    enablePerformanceLogging: false,
    changeCacheDuration: Duration(seconds: 10),
    maxChangeCacheSize: 100,
    changeCacheCleanupInterval: Duration(seconds: 10),
    remoteSyncBatchSize: 20,
    remoteStreamBatchSize: 10,
    progressEventFrequency: 10,
    remoteEventDebounceTime: Duration(milliseconds: 10),
  );
}