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 15:46:14
Message-ID: 20170102154614.g6h5dmopgoy7ynzc@hermes.hilbert.loc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: psycopg

On Mon, Jan 02, 2017 at 07:35:46AM -0800, Adrian Klaver wrote:

>>> In [56]: %timeit -n 10 cur.executemany(sql, l)

Someone along the way was asking for a possibility to "feed
in" the 'l' values.

Any chance 'l' can be supported to be a generator expression ?

Thanks for these two great developments !

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

In response to

Responses

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2017-01-02 16:07:59 Re: speed concerns with executemany()
Previous Message Adrian Klaver 2017-01-02 15:35:46 Re: speed concerns with executemany()