sapling/sqldirstate
Mateusz Kwapich ba7472d564 sqldirstate: pragma synchronous off
Summary:
From sqlite manual:

    With synchronous OFF (0), SQLite continues without syncing as soon as it
    has handed data off to the operating system. If the application running
    SQLite crashes, the data will be safe, but the database might become
    corrupted if the operating system crashes or the computer loses power
    before that data has been written to the disk surface. On the other hand,
    commits can be orders of magnitude faster with synchronous OFF.

I believe this is a proper tradeoff for dirstate as we can regenerate it easily if db becomes corrupted.

Test Plan: tests are passing

Reviewers: #mercurial, ttung, durham

Subscribers: mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3559167
2016-07-15 12:20:59 -07:00
..
__init__.py sqldirstate: put the fact of enabling sqldirstate into config 2016-07-11 14:43:14 -07:00
sqldirstate.py sqldirstate: pragma synchronous off 2016-07-15 12:20:59 -07:00
sqlmap.py sqldirstate: fast in-memory cache for batch operations 2016-06-24 15:48:40 -07:00