mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 10:57:58 +00:00
The number of affected objects may be quite high, and they are selected by `id IN (...)` query, and updated with a giant `CASE`. This turns out to be quadratic, and can cause large queries to take hours, in a state where they cannot be terminated, when PostgreSQL >11 tries to JIT the query. Set a batch_size as a stopgap performance fix before moving to `.update()` as a real fix.
9.7 KiB
9.7 KiB