FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow executemany to return rows by LeonardBesson · Pull Request #1110 · MagicStack/asyncpg · GitHub

Allow executemany to return rows - #1110

Closed
LeonardBesson wants to merge 1 commit into
MagicStack:masterfrom
LeonardBesson:executemany-returning
Closed

Allow executemany to return rows#1110
LeonardBesson wants to merge 1 commit into
MagicStack:masterfrom
LeonardBesson:executemany-returning

Conversation

LeonardBesson commented Dec 23, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

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)

elprans commented Jul 17, 2024

Copy link
Copy Markdown
Member

Plausible. I'm not a fan of changing the function signature based on the argument though. I think this should be a separate method, e.g. fetchmany or something like that (though could be somewhat confusing for DB-API users).

elprans commented Oct 18, 2024

Copy link
Copy Markdown
Member

Ability to return values added as fetchmany in #1175.

elprans closed this Oct 18, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL