]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Added parallel worker to COPY FROM
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 15 Jan 2021 13:55:29 +0000 (14:55 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 16 Jan 2021 01:06:55 +0000 (02:06 +0100)
commit900c85905442a787b48e7db653d9c8e9d0c986cc
tree222d53e45d719f6031c2a93d779a8e8610bb9072
parent0f549946d99f638af050ede1dbcabee8e7d632d0
Added parallel worker to COPY FROM

Have a background writer to push data down the connection while the main
thread is CPU-bound to encode data.

Use a thread to implement the sync worker, a task to implement the
asyncio one.
psycopg3/psycopg3/copy.py
tests/test_copy.py
tests/test_copy_async.py