zulip/zephyr
Tim Abbott 9ef3754682 Use bulk_create to create sent messages.
Previously we were doing 100 queries for new messages being sent to
the main hacker school channels; they were faster than many similar
instances because they were all done within 1 transaction, but still,
send_message_backend would be spending up to 200ms (and 148 queries)
querying the database with the previous code on prod; this new version
should do a fixed number of database queries per message.

(imported from commit 3799e63aebb6f017932ddb0fe1f6209281c0ddcf)
2013-02-19 17:36:22 -05:00
..
fixtures Rename zephyrs.json => messages.json in .gitignore. 2012-10-10 10:39:27 -04:00
jstemplates Add a 'show in home view' toggle to the stream settings 2013-02-19 15:43:27 -05:00
lib Use bulk_create to create sent messages. 2013-02-19 17:36:22 -05:00
management Unify rabbitmq usage to use only one queue. 2013-02-15 11:43:17 -05:00
migrations [manual][schema] Add an API for user presence (idle) information 2013-02-11 18:05:57 -05:00
static Do not show self in presence list for MIT 2013-02-19 17:36:22 -05:00
tests Update test (again) to match new '>' delimiter. 2013-02-15 12:14:59 -05:00
__init__.py Initial Django commit: basic account, zephyr stream, narrowing, etc. 2012-08-28 12:44:51 -04:00
context_processors.py [manual] Get rid of the static-access-control mechanism 2013-01-31 15:34:12 -05:00
decorator.py Unify rabbitmq usage to use only one queue. 2013-02-15 11:43:17 -05:00
filters.py Filter out all cookies and the csrfmiddlewaretoken. 2013-02-05 16:12:48 -05:00
forms.py Rename is_active to is_inactive. 2013-02-12 16:15:29 -05:00
handlers.py Catch all exceptions when sending a message from AdminHumbugHandler 2013-02-05 16:12:48 -05:00
middleware.py logging: Fix super verbose logging of 404 errors. 2013-02-12 16:36:13 -05:00
models.py Re-enable markup for CUSTOMER1 2013-02-12 17:09:47 -05:00
retention_policy.py retention: look up domain instead of inferring from a user's email. 2013-02-08 13:20:18 -05:00
tests.py Add test for ** not matching over newlines 2013-02-14 11:56:53 -05:00
tornadoviews.py Clean up fetch_table_messages code a bit. 2013-02-12 16:25:45 -05:00
views.py Use plainto_tsquery instead of to_tsquery 2013-02-15 16:18:02 -05:00