zulip/zerver
Lauryn Menard 1d5897060a audit-logs: Add index to RealmAuditLog for realm and event type.
Adds an index on RealmAuditLog for the realm, event_type, and
event_time in order to improve database queries on these audit logs.

tabbott verified using EXPLAIN ANALYZE that this also considerably
speeds up queries that order by ID rather than event_time, but
event_time is how these should be ordered given the possibility of
backfills.
2024-04-19 17:58:59 -07:00
..
actions audit_log: Update audit log entries created while creating a group. 2024-04-19 10:18:45 -07:00
data_import refactor: Replace HUDDLE with DIRECT_MESSAGE_GROUP. 2024-03-21 16:39:33 -07:00
integration_fixtures/nagios
lib push_notifs: Make push_notifications_enabled more resistant to flapping. 2024-04-19 10:25:34 -07:00
management zulip_updates: Prevent racing with self using a lock. 2024-04-18 15:14:02 -07:00
migrations audit-logs: Add index to RealmAuditLog for realm and event type. 2024-04-19 17:58:59 -07:00
models audit-logs: Add index to RealmAuditLog for realm and event type. 2024-04-19 17:58:59 -07:00
openapi api_docs: Fix the example JSON error response for 'POST /typing'. 2024-04-19 09:54:54 -07:00
tests push_notifs: Make push_notifications_enabled more resistant to flapping. 2024-04-19 10:25:34 -07:00
tornado narrow: Move python-only implemenation into its own file. 2024-04-16 09:48:11 -07:00
transaction_tests ruff: Fix PLW0108 Lambda may be unnecessary. 2024-03-01 09:30:04 -08:00
views streams: Remove inappropriate use of zerver.lib.timeout. 2024-04-18 11:50:38 -07:00
webhooks integration: Split 'opened_or_update_pull_request' event type. 2024-04-11 11:23:08 -07:00
worker db: Split reset_queries into a new module zerver.lib.db_connections. 2024-04-17 16:49:03 -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 test_decorators: Replace some deleted tests. 2024-03-29 09:39:34 -07:00
filters.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
forms.py settings: Add permission to enforce unique names in realm. 2024-04-02 14:55:59 -07:00
logging_handlers.py error_notify: Remove custom email error reporting handler. 2023-07-20 11:00:09 -07:00
middleware.py db: Split reset_queries into a new module zerver.lib.db_connections. 2024-04-17 16:49:03 -07:00
signals.py ruff: Fix UP036 Version block is outdated for minimum Python version. 2024-04-01 18:32:52 -07:00