Re: Feature Request: Allow passing no-op filters to QuerySet's bulk_update() when updating tables with partitions

2021-07-25 Thread opqpop
ysets better. Thanks again! On Thursday, July 22, 2021 at 10:30:30 AM UTC-7 Adam Johnson wrote: > It should already work to do `Model.objects.filter(...).bulk_update(...)` > , no? > > On Tue, 13 Jul 2021 at 00:50, opqpop wrote: > >> Hi, I'd like to pass additional partiti

Feature Request: Allow passing no-op filters to QuerySet's bulk_update() when updating tables with partitions

2021-07-12 Thread opqpop
Hi, I'd like to pass additional partition columns into the filters for a QuerySet's bulk_update(). These would be no-op filters solely for the DB to understand from the query to lock rows in a single partition vs all partitions. Ex: I'd add "orig_city_id = 52" into this pk filter that bulk_upd