Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.173 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.69; '*S*': 0.04; 'subject:file': 0.07; 'subject:How': 0.09; 'properties,': 0.16; 'renaming': 0.16; 'to:2**1': 0.23; 'specifically': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'i/o': 0.29; 'asked': 0.33; 'to:addr:python-list': 0.33; 'operations': 0.33; 'agree': 0.34; 'wrong': 0.34; 'far': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'more.': 0.62; 'received:204': 0.72; '1980s': 0.84; 'subject:status': 0.84; '"how': 0.91; 'approach.': 0.91 Date: Thu, 12 Jul 2012 14:31:50 +0200 From: Laszlo Nagy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: John Nagle , python-list@python.org Subject: Re: How to safely maintain a status file References: <4FF9F454.40207@shopzeus.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1342096316 news.xs4all.nl 6843 [2001:888:2000:d::a6]:33239 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25211 > Renaming files is the wrong way to synchronize a > crawler. Use a database that has ACID properties, such as > SQLite. Far fewer I/O operations are required for small updates. > It's not the 1980s any more. I agree with this approach. However, the OP specifically asked about "how to update status file".