Enabled checkpoints by default

This commit is contained in:
M66B 2022-06-24 21:08:22 +02:00
parent d81f7fb2ea
commit b0a537cf25
2 changed files with 2 additions and 2 deletions

View File

@ -1737,7 +1737,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
sbRoomQueryThreads.setProgress(query_threads);
swWal.setChecked(prefs.getBoolean("wal", true));
swCheckpoints.setChecked(prefs.getBoolean("sqlite_checkpoints", false));
swCheckpoints.setChecked(prefs.getBoolean("sqlite_checkpoints", true));
swAnalyze.setChecked(prefs.getBoolean("sqlite_analyze", true));
int sqlite_cache = prefs.getInt("sqlite_cache", DB.DEFAULT_CACHE_SIZE);

View File

@ -59,7 +59,7 @@ public class WorkerFts extends Worker {
Context context = getApplicationContext();
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean checkpoints = prefs.getBoolean("sqlite_checkpoints", false);
boolean checkpoints = prefs.getBoolean("sqlite_checkpoints", true);
int indexed = 0;
List<Long> ids = new ArrayList<>(INDEX_BATCH_SIZE);