Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!rt.uk.eu.org!feed.xsnews.nl!border-2.ams.xsnews.nl!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.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.058 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; '(at': 0.03; ':-)': 0.13; 'descending': 0.16; 'oct': 0.16; 'sqlite3': 0.16; 'wrote:': 0.17; 'variables': 0.17; 'to:name:python-list@python.org': 0.20; 'finally,': 0.22; 'external': 0.24; 'least': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; '---': 0.26; 'charset:iso-8859-15': 0.26; 'question': 0.27; 'i/o': 0.29; 'worked': 0.30; 'stuff': 0.30; 'file': 0.32; 'could': 0.32; '+0200,': 0.33; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'compare': 0.36; 'subject: (': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'subject:-': 0.40; 'worth': 0.63; 'received:213.150': 0.84; 'subject:Fast': 0.84; 'subject:read': 0.84; 'subject:write': 0.84; 'dennis': 0.91 X-SENDER-IP: [213.112.50.224] X-LISTENER: [smtp.bredband.net] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtwxAGjOhlDVcDLgPGdsb2JhbAANN4VNhQG3OgEBAQE4glIBAQEBAzhAEQsYCRYPCQMCAQIBMRQGDQYCAQGwVoMpkDaLX4ZeA6kb X-IronPort-AV: E=Sophos;i="4.80,637,1344204000"; d="scan'208";a="138420639" Date: Tue, 23 Oct 2012 19:09:32 +0200 From: Virgil Stokes User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: "python-list@python.org" Subject: Re: Fast forward-backward (write-read) References: <5086AA35.4000509@it.uu.se> <4qhd885qnovi81hf689uobmdbu3b4nb7nv@invalid.netcom.com> In-Reply-To: <4qhd885qnovi81hf689uobmdbu3b4nb7nv@invalid.netcom.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351013570 news.xs4all.nl 6969 [2001:888:2000:d::a6]:36575 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31947 On 23-Oct-2012 18:35, Dennis Lee Bieber wrote: > On Tue, 23 Oct 2012 16:31:17 +0200, Virgil Stokes > declaimed the following in gmane.comp.python.general: > >> Finally, to my question --- What is a fast way to write these variables to an >> external file and then read them in backwards? >> > Stuff them into an SQLite3 database and retrieve using a descending > sort? Have never worked with a database; but, could be worth a try (at least to compare I/O times). Thanks Dennis :-)