wcdb icon indicating copy to clipboard operation
wcdb copied to clipboard

WAL文件过大,很快就到几百MB了,请问这个wal文件是自动回收吗

Open knightSaber opened this issue 5 years ago • 2 comments
trafficstars

The language of WCDB

e.g. Objective-C, Swift or Java

The version of WCDB

e.g. v1.0.5

The platform of WCDB

e.g. iOS, macOS or Android

The installation of WCDB

e.g. Cocoapods, Carthage, Maven, AAR Package or Git clone

What's the issue?

Post the outputs or screenshots for errors.

Explain what you want by example or code in English.

knightSaber avatar Aug 20 '20 14:08 knightSaber

journalSizeLimit

azureplus avatar Sep 06 '20 02:09 azureplus

journalSizeLimit

1、configure journal_size_limit 2、trigger checkpoint and sqlite will truncate wal file size to your limit size

https://sqlite.org/wal.html#ckpt https://www.sqlite.org/pragma.html#pragma_wal_checkpoint

holybin avatar Dec 13 '21 06:12 holybin