Re: [psycopg] speed concerns with executemany() - Mailing list psycopg

From Karsten Hilbert
Subject Re: [psycopg] speed concerns with executemany()
Date
Msg-id 20170102163227.yjvo7zln36xo6ulf@hermes.hilbert.loc
Whole thread Raw
In response to Re: [psycopg] speed concerns with executemany()  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List 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


psycopg by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: [psycopg] speed concerns with executemany()
Next
From: Adrian Klaver
Date:
Subject: Re: [psycopg] speed concerns with executemany()