]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Don't recalculate loaders when not needed
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Feb 2021 01:23:16 +0000 (02:23 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Feb 2021 01:23:16 +0000 (02:23 +0100)
commitbbb40af94242735ebeee768182c81b78080a0fd5
treee844ab3f5f067578e3d9f99088e1598029ca18a8
parent0209d57f49c9ade95e3ca0f30fe82aa713ccdc55
Don't recalculate loaders when not needed

The case it's not needed is when the new result is guaranteed to have
the same fields as the previous one. This happens querying in single-row
mode and on server-side cursors fetch.
psycopg3/psycopg3/cursor.py
psycopg3/psycopg3/server_cursor.py