Re: about client-side cursors

2021-02-10 Thread Denis Laxalde
Daniele Varrazzo a écrit : So, in the server-side branch, I've made the function non-async on AsyncConnection too. This makes also context manager better to use, as now you can do: async with aconn.cursor() as cur: # use it whereas previously it would have taken an `async with awa

Re: about client-side cursors

2021-02-10 Thread Daniele Varrazzo
On Wed, 3 Feb 2021 at 17:16, Denis Laxalde wrote: > Why do we need two 'await' (i.e. two IO operations) on conn.execute() > and cur.fetchall() if 'cur' is a client-side cursor? (Back to my first > point about where IO happen, this appears to depend on whether the > connection has 'autocommit' or