On Mon, Sep 21, 2015 at 1:49 AM, Cecil Westerhof <ce...@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
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to