zulip/zerver
Alex Vandiver 6e91e326e9 deferred_work: Reduce batch size due to bad statistics.
PostgreSQL's estimate of the number of usermessage rows for a single
message can be wildly off, due to poor statistics generation.  This
causes this query, with 100-message batch sizes, to incorrectly
estimate millions of matched rows, causing it to perform a full-table
index scan, rather than piecemeal using the `message_id` index.

Reduce the batch size to 50, which is enough to tip in favor of a
rational query plan.
2024-03-11 09:24:59 -07:00
..
actions events: Change format of authentication_methods realm_update_dict event. 2024-03-05 11:48:58 -08:00
data_import backends: Implementation of restricting certain backends by plan. 2024-03-05 11:48:58 -08:00
integration_fixtures/nagios
lib context_managers: Open file in write mode in lockfile_nonblocking. 2024-03-06 10:35:02 -08:00
management runtornado: Swap deferred reload events to the default. 2024-02-26 22:29:19 -08:00
migrations python: Reformat with Ruff formatter. 2024-02-29 17:07:16 -08:00
models backends: Implementation of restricting certain backends by plan. 2024-03-05 11:48:58 -08:00
openapi authentication_methods: Bump feature level and add changelog entries. 2024-03-05 11:48:58 -08:00
tests tests: Clarify test_inaccessible_msg_after_stream_change. 2024-03-06 17:31:16 -08:00
tornado ruff: Fix PLW0108 Lambda may be unnecessary. 2024-03-01 09:30:04 -08:00
transaction_tests ruff: Fix PLW0108 Lambda may be unnecessary. 2024-03-01 09:30:04 -08:00
views csp_violations: Migrate has_request_variables to typed_endpoint. 2024-03-08 11:26:00 -08:00
webhooks ruff: Fix E226 Missing whitespace around arithmetic operator. 2024-03-01 09:30:04 -08:00
worker deferred_work: Reduce batch size due to bad statistics. 2024-03-11 09:24:59 -07:00
__init__.py
apps.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
context_processors.py python: Reformat with Ruff formatter. 2024-02-29 17:07:16 -08:00
decorator.py python: Reformat with Ruff formatter. 2024-02-29 17:07:16 -08:00
filters.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
forms.py email_validation: Merge two implementations of a disposable-email check. 2024-02-27 10:19:23 -08:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py Revert "zproject: Prevent having exactly 17/18 middlewares, for Python 3.11 bug." 2024-02-05 19:57:21 -05:00
signals.py timezone: Only look up canonical time zones from the system. 2024-03-01 17:38:08 -08:00