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

Allow executemany to return rows #1110

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

Conversation

LeonardBesson
Copy link
Contributor

@LeonardBesson LeonardBesson commented Dec 23, 2023

Fixes #448

This is a proposed change to support executemany with INSERT ... RETURNING.

The PR adds a flag parameter to executemany, but adding a seperate method like fetchmany was also mentioned.

@elprans would you consider something along those lines? I think the value here is allowing to take advantage of the query pipelining from executemany while avoiding the limitations of the proposed workarounds (like DEFAULT as mentioned in your stackoverflow post)

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.

Question: batch optimizations for RETURNING clauses.
1 participant