New on the Psycopg blog: row-by-row streaming with server-side cursors 🐘🐍 One ...
Psycopg @psycopg@fosstodon.org
New on the Psycopg blog: row-by-row streaming with server-side cursors 🐘🐍
One of the most common mistakes with large PostgreSQL datasets is calling fetchall() and loading everything into memory. Server-side cursors solve this cleanly: stream results row by row, control batch size, and use it with async too.
We walk through how it works, a practical export example, and what to watch out for. Link in replies 👇
#PostgreSQL #Python #Psycopg #OpenSource #FOSS #DataEngineering