bitbake: prserv: Use WAL mode
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Nov 2014 16:58:13 +0000 (16:58 +0000)
committerPatrick Ohly <patrick.ohly@intel.com>
Fri, 9 Jan 2015 16:52:21 +0000 (08:52 -0800)
commitf950e80871400208094c37549f05fd861131eaa3
treeb3d721411e04b51f29aef85489cc9d9f15151e4a
parentf082bca6572d6a71b2d53b7634bc770f2b4b2b56
bitbake: prserv: Use WAL mode

Ideally, we want the PR service to have minimal influence from
queued disk IO. sqlite tends to be paranoid about data loss and
locks/fsync calls. There is a "WAL mode" which changes the journalling
mechanism and would appear much better suited to our use case.

This patch therefore switches the database to use WAL mode. With this
change, write overhead appears significantly reduced.

(Bitbake rev: 90b05e79764b684b20ce8454e89f05763b02ac97)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
bitbake/lib/prserv/db.py