Is it more CPU-efficient to read/write config file or read/write sqlite database?

Chris Angelico rosuav at gmail.com
Sun Dec 15 18:50:16 EST 2013


On Mon, Dec 16, 2013 at 10:12 AM, Cameron Simpson <cs at zip.com.au> wrote:
>   + traditionally, sqlite is extreme fsync() happy; forces a disc
>     level flush on each commit - extremely slow on busy databases,
>     not to mention hard of drives

I'd say that's correct behaviour. A commit should be sync'd to disk.
If you don't want it to go to the disk yet, don't commit yet!

ChrisA



More information about the Python-list mailing list