Re: speed concerns with executemany()

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: psycopg(at)postgresql(dot)org
Subject: Re: speed concerns with executemany()
Date: 2017-01-02 16:32:28
Message-ID: 20170102163227.yjvo7zln36xo6ulf@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Mon, Jan 02, 2017 at 05:24:47PM +0100, Daniele Varrazzo wrote:

> > Can said sequence be a generator (IOW not needing to support
> > len() upfront) ?
>
> Correct: see the implementation of paginate() in the gist at
> <https://gist.github.com/dvarrazzo/4204cca5d1cd7c9c95bc814d81e6b83e>:
> the sequence is only consumed via next().

Ah, missed that, sorry.

Great work,
Karsten
--
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346

In response to

Browse psycopg by date

  From Date Subject
Next Message Adrian Klaver 2017-01-02 16:35:08 Re: speed concerns with executemany()
Previous Message Karsten Hilbert 2017-01-02 16:27:44 Re: speed concerns with executemany()