Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a 'size' parameter to Cursor.stream() #794

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dlax
Copy link
Contributor

@dlax dlax commented Apr 17, 2024

Based on #793

@dlax dlax marked this pull request as ready for review April 17, 2024 12:03
@dlax dlax force-pushed the cursor-stream-chunks branch 4 times, most recently from 27ff63c to dc7ac28 Compare April 17, 2024 12:29
@dvarrazzo
Copy link
Member

Heads up: I gave a forced push to the branch because github didn't detect that #793 was merged and the MR still showed two commits.

Copy link
Member

@dvarrazzo dvarrazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some nits, but otherwise looks good, thank you 🙂

psycopg/psycopg/_cursor_base.py Outdated Show resolved Hide resolved
psycopg/psycopg/rows.py Outdated Show resolved Hide resolved
psycopg/psycopg/cursor_async.py Outdated Show resolved Hide resolved
docs/api/cursors.rst Show resolved Hide resolved
This triggers results retrieval by chunks from the server, if > 1,
leveraging the "chunked rows mode" from libpq 17.

A new has_stream_chunked() capability is added.
@dvarrazzo dvarrazzo added this to the 3.2 milestone May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants