Closed clokep closed 11 months ago
I'm not 100% convinced of these changes, I want to add some tests.
Once #16596 is merged, I'll add tests for these changes to ensure nothing is breaking.
I added some additional tests (based on #16596) and some more comments. 👍
Return early for
simple_insert_many_txn
,simple_upsert_many_txn
, andsimple_update_many_txn
if the iterable to update is empty.Note that we already do this for
simple_select_many_txn
andsimple_delete_many_txn
.This avoids hitting the database with a no-op query, the downside is that we can't pass generators into this function.