Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'mrab': 0.04; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:file': 0.13; 'crowd,': 0.16; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'sqlite3': 0.16; 'mon,': 0.16; 'wrote:': 0.18; 'appears': 0.19; 'header:In-Reply-To:1': 0.22; 'stefan': 0.24; 'subject:data': 0.25; "i'm": 0.28; 'module.': 0.29; 'subject:?': 0.31; 'sufficient': 0.32; 'header:User-Agent:1': 0.33; 'agree': 0.33; 'header:X-Complaints-To:1': 0.34; 'received:84': 0.34; 'latter': 0.34; 'probably': 0.35; 'to:addr:python-list': 0.35; 'received:org': 0.36; 'some': 0.38; 'put': 0.40; 'to:addr:python.org': 0.40; 'here': 0.64; 'unnecessary': 0.73; 'database.': 0.74; 'everything,': 0.84; 'subject:Fast': 0.84; 'complexity': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Stefan Behnel Subject: Re: Fast file data retrieval? Date: Wed, 21 Mar 2012 17:32:33 +0100 References: <4F5E50F6.9070309@it.uu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: dslb-084-056-030-022.pools.arcor-ip.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120310 Thunderbird/11.0 In-Reply-To: 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: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332347577 news.xs4all.nl 6870 [2001:888:2000:d::a6]:34053 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21990 Jorgen Grahn, 13.03.2012 21:44: > On Mon, 2012-03-12, MRAB wrote: >> Probably the best solution is to put it into a database. Have a look at >> the sqlite3 module. > > Some people like to use databases for everything, others never use > them. I'm in the latter crowd, so to me this sounds as overkill Well, there's databases and databases. I agree that the complexity of a SQL database is likely unnecessary here since a key-value database (any of the dbm modules) appears to be sufficient from what the OP wrote. Stefan