onFlushComplete method
Increment flush counter and run WAL checkpoint every 10 flushes.
Implementation
Future<void> onFlushComplete() async {
_flushCounter++;
if (_flushCounter % 10 == 0) {
await walCheckpoint();
}
}
Increment flush counter and run WAL checkpoint every 10 flushes.
Future<void> onFlushComplete() async {
_flushCounter++;
if (_flushCounter % 10 == 0) {
await walCheckpoint();
}
}