Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; '16,': 0.03; 'subject:file': 0.07; 'cc:addr:python-list': 0.11; 'behaviour.': 0.16; 'disc': 0.16; 'flush': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'simpson': 0.16; 'sqlite': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'commit': 0.19; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'mention': 0.26; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'am,': 0.29; 'dec': 0.30; 'message- id:@mail.gmail.com': 0.30; 'forces': 0.31; "i'd": 0.34; 'received:google.com': 0.35; 'disk': 0.36; 'subject:?': 0.36; 'should': 0.36; 'level': 0.37; 'extremely': 0.39; 'subject:more': 0.64; 'subject:read': 0.84; 'to:none': 0.92; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=ZKk8wh5zpIRXK4U2UolLfglfrURtsskxD+ePX9nwSGg=; b=O/NigxRLzrWWHDkDrGYGGgL5SloXctZhFxhDLmZ0qWOdDjne1cmuiOK9LBeyYRE5+h ktumuS/+fsWYghLv4N8IWpaRAdP7zdaRW6n34guvZ1vwKh3nyeo9FM211gQBLRJ3Dv0Q Ck5xi7bpmWDw3o7sSCZ16Y+n1/8KffMBS4wEMQa2G8qFRmATyekWtC2E4NHwLUnc1Dt7 OUc+irhehQZNOWPg46h2A+A5Oz2AaCcGK4sevOBZNUsxuI7+Bh0ywCR1CfJtctaFcGBc xGwGX6FrktpoIv9DNeDLEbQV6YH1FSaX8g14H1Vk5M9feHejFeEXAU6VGnQazRIYX6js LiYw== MIME-Version: 1.0 X-Received: by 10.68.236.233 with SMTP id ux9mr16701715pbc.45.1387151416317; Sun, 15 Dec 2013 15:50:16 -0800 (PST) In-Reply-To: <20131215231228.GA6608@cskk.homeip.net> References: <20131214101518.69b040dc@bigbox.christie.dr> <20131215231228.GA6608@cskk.homeip.net> Date: Mon, 16 Dec 2013 10:50:16 +1100 Subject: Re: Is it more CPU-efficient to read/write config file or read/write sqlite database? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1387151420 news.xs4all.nl 2941 [2001:888:2000:d::a6]:49133 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:61973 On Mon, Dec 16, 2013 at 10:12 AM, Cameron Simpson 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