zulip/zerver
Alex Vandiver 22837fc1b4 message_edit: Carry the QuerySet through as much as possible.
Rather than pass around a list of message objects in-memory, we
instead keep the same constructed QuerySet which includes the later
propagated messages (if any), and use that same query to pick out
affected Attachment objects, rather than limiting to the set of ids.
This is not necessarily a win -- the list of message-ids *may* be very
long, and thus the query may be more concise, easier to send to
PostgreSQL, and faster for PostgreSQL to parse.  However, the list of
ids is almost certainly better-indexed.

After processing the move, the QuerySet must be re-defined as a search
of ids (and possibly a very long list of such), since there is no
other way which is guaranteed to correctly single out the moved
messages.  At this point, it is mostly equivalent to the list of
Message objects, and certainly takes no less memory.
2024-02-14 12:27:03 -08:00
..
actions message_edit: Carry the QuerySet through as much as possible. 2024-02-14 12:27:03 -08:00
data_import ruff: Fix SIM113 Use `enumerate()` for index variable in `for` loop. 2024-02-02 10:30:45 -08:00
integration_fixtures/nagios
lib message_edit: Carry the QuerySet through as much as possible. 2024-02-14 12:27:03 -08:00
management requirements: Upgrade Python requirements. 2024-01-29 10:41:54 -08:00
migrations ruff: Fix SIM113 Use `enumerate()` for index variable in `for` loop. 2024-02-02 10:30:45 -08:00
models ruff: Fix DJ012 Order of model's inner classes, methods, and fields. 2024-01-29 10:41:54 -08:00
openapi help: Update external links to "Bots overview" help center page. 2024-02-06 18:22:57 -08:00
tests message_edit: Carry the QuerySet through as much as possible. 2024-02-14 12:27:03 -08:00
tornado ruff: Fix SIM910 Use `d.get(…)` instead of `d.get(…, None)`. 2024-02-02 10:30:45 -08:00
transaction_tests models: Extract zerver.models.realms. 2023-12-16 22:08:44 -08:00
views message: Add a bulk_access_stream_messages_query method. 2024-02-14 12:27:03 -08:00
webhooks integrations: Create incoming webhook for GitHub Sponsors. 2024-02-07 09:52:03 -08:00
worker queue_processors: Process user_activity in one query. 2024-01-22 16:25:13 -08:00
__init__.py
apps.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
context_processors.py login: Remove external_authentication_methods from page_params. 2023-12-29 13:02:12 -08:00
decorator.py requirements: Upgrade Python requirements. 2024-01-29 10:41:54 -08:00
filters.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
forms.py models: Extract zerver.models.realms. 2023-12-16 22:08:44 -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 email: Add a space after the time and AM/PM in the login email. 2023-11-27 09:47:30 -08:00