-
Notifications
You must be signed in to change notification settings - Fork 78
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 support for multi-deletes. #828
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First review: thanks for the work!
- can we share more code between the INSERT and the DELETE paths? it seems like we are duplicating code parts that are “infrastructure” (memory resizing, array elements handling, not “functional” bits)
- I'm not sure about using the WHERE ... OR ... approach for the DELETE statement with multiple target rows ; I think I would prefer a JOIN using VALUES
Yep.
Can you share how the query would look like? I tried constructing one, but it was making things more complicated. |
I could not think of any reasonable way to write a JOIN using VALUES. I stumbled upon a PostgreSQL docs page containing a note:
I wonder if it actually makes sense to add support for multi deletes. Can we run a simple benchmark to understand whether or not this adds value? |
Let me get back with the perf results, meanwhile @dimitri let us know your thoughts. |
Continuation of #465