Closed zhangzhanzg closed 1 month ago
You can build wcdb without SQLITE_DEFAULT_WAL_AUTOCHECKPOINT for now. I will give a better solution in the next version.
You mean SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=0 can be removed directly from pod_target_xcconfig,WCDB still works fine
You mean SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=0 can be removed directly from pod_target_xcconfig,WCDB still works fine
Yes
You mean SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=0 can be removed directly from pod_target_xcconfig,WCDB still works fine
I try to remove SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=0, but it will be compilation error, because AutoCheckpointConfig::invoke use SQLITE_DEFAULT_WAL_AUTOCHECKPOINT. So I set SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=1000, For better performance, Do I need to set PRAGMA wal_autocheckpoint=0 for my WCDB database? Thanks.
set SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=1000,
It is ok to set SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=1000. PRAGMA config is not needed.
set SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=1000,
It is ok to set SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=1000. PRAGMA config is not needed.
Get it, thanks。Are there any other configurations like SQLITE_DEFAULT_WAL_AUTOCHECKPOINT that can be removed or set to default value?
set SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=1000,
It is ok to set SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=1000. PRAGMA config is not needed.
Get it, thanks。Are there any other configurations like SQLITE_DEFAULT_WAL_AUTOCHECKPOINT that can be removed or set to default value?
You can remove configs like SQLITE_ENABLE_xxx.
ok, thanks vary much
The language of WCDB
Objective-C
The version of WCDB
v2.0.4
The platform of WCDB
iOS
The installation of WCDB
Cocoapods
What's the issue?
In my project, there are WCDB and FMDB. Since WCDB sets SQLITE_DEFAULT_WAL_AUTOCHECKPOINT=0, this causes the auto checkpoint of other databases using FMDB to fail, which causes the wal file to keep increasing. So how should this conflict be handled?