diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/persist_data.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/persist_data.py b/bitbake/lib/bb/persist_data.py index 2bc3e766a9..1492792090 100644 --- a/bitbake/lib/bb/persist_data.py +++ b/bitbake/lib/bb/persist_data.py | |||
@@ -279,6 +279,11 @@ class PersistData(object): | |||
279 | def connect(database): | 279 | def connect(database): |
280 | connection = sqlite3.connect(database, timeout=5) | 280 | connection = sqlite3.connect(database, timeout=5) |
281 | connection.execute("pragma synchronous = off;") | 281 | connection.execute("pragma synchronous = off;") |
282 | # Enable WAL and keep the autocheckpoint length small (the default is | ||
283 | # usually 1000). Persistent caches are usually read-mostly, so keeping | ||
284 | # this short will keep readers running quickly | ||
285 | connection.execute("pragma journal_mode = WAL;") | ||
286 | connection.execute("pragma wal_autocheckpoint = 100;") | ||
282 | connection.text_factory = str | 287 | connection.text_factory = str |
283 | return connection | 288 | return connection |
284 | 289 | ||