Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel: Speed up leapp database writes by disabling synchronization
This patch introduces an optimization of the database access when the LEAPP_DEVEL_DATABASE_SYNC_OFF environment variable is set. This causes to write to the database up to 20 times faster than normal, depending on the underlying hard drive and file system. I managed to increase the speed leapp preupgrade from 9 minutes 7 seconds to 26 seconds. However this feature comes at the cost of risking database corruption, in case of powerloss or OS crashes. According to the SQLite documentation, application crashes are safe. Since this option poses a potential risk, it is deemed for now a development option only and will help to speed up our CI systems.
- Loading branch information