Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #96886
| Path | csiph.com!news.swapon.de!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; '21,': 0.07; 'rewrite': 0.07; 'cc:addr:python-list': 0.09; 'loop.': 0.09; 'subject:Python3': 0.09; 'executed.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'iterates': 0.16; 'query,': 0.16; 'subject:Started': 0.16; 'ugly.': 0.16; 'wrote:': 0.16; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'sep': 0.22; 'am,': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; "doesn't": 0.26; 'message-id:@mail.gmail.com': 0.27; 'table': 0.32; 'received:google.com': 0.35; 'but': 0.36; 'needed': 0.36; 'subject:work': 0.36; 'subject:: ': 0.37; 'list.': 0.37; 'subject:with': 0.40; 'fuel': 0.66; 'cecil': 0.84; 'chrisa': 0.84; 'westerhof': 0.84; 'to:none': 0.91 |
| 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=64FnvqUY+EquLPMNDGK9IrixTAVtKHYlcOudl+cGOFI=; b=DgZVx78mBpHRDkWTWDBsLBioAusl7nPnI/oqIlwAgZbehBZZ8sLAnC3rry5ByBz9uv 6kTuJ2SQGM5inwNOoZsSefpdsdWxhADzRWDZZgqmKdeuvP83bJI4ch00WAqonpZ84J5r H1VCjHrZozwoJ6sbZgCtexoEGhqQfGU9Q9LFAG6YuKMP5llusJLuaLjqgJ0ia1S/ggYD PvX7PDiQgfnQfXgVR9w2IhqnAKP6L9CE3lubk0SPCbn3D321tFPkL8vR2xbNHtgTmbxh JiEMIoZjZg2P/C51yCrXpm/5V8Wcu41MPxmWZ67HC05wzfXjuoaCsFtrsaVok+Bm1yrz qxpQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.107.33.81 with SMTP id h78mr21501335ioh.19.1442767471317; Sun, 20 Sep 2015 09:44:31 -0700 (PDT) |
| In-Reply-To | <87fv29rsyn.fsf@Equus.decebal.nl> |
| References | <87fv29rsyn.fsf@Equus.decebal.nl> |
| Date | Mon, 21 Sep 2015 02:44:31 +1000 |
| Subject | Re: Started to work with SQLite3 in Python3 |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.43.1442767480.21674.python-list@python.org> (permalink) |
| Lines | 14 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1442767480 news.xs4all.nl 23805 [2001:888:2000:d::a6]:59106 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:96886 |
Show key headers only | View raw
On Mon, Sep 21, 2015 at 1:49 AM, Cecil Westerhof <Cecil@decebal.nl> wrote: > - I understood that with > for fuel in fuel_cursor: > a fetchall will be executed. > At the moment I do not see this as a problem, but if the table would > become very big it could. Would it be better to rewrite it with a > fetchone? > But that is then needed inside and before the loop. What would be a > little ugly. It iterates over the query, but it doesn't fetchall() into a list. So it's as good as using fetchone(). ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Started to work with SQLite3 in Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-09-20 17:49 +0200
Re: Started to work with SQLite3 in Python3 Chris Angelico <rosuav@gmail.com> - 2015-09-21 02:44 +1000
Re: Started to work with SQLite3 in Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-09-20 20:40 +0200
Re: Started to work with SQLite3 in Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-09-20 20:57 +0200
Re: Started to work with SQLite3 in Python3 Cecil Westerhof <Cecil@decebal.nl> - 2015-09-20 21:03 +0200
csiph-web