zulip/zephyr
Tim Abbott 54b10a292c Monkeypatch Django cursor to log query times even when DEBUG=False.
I don't like monkeypatching in general, but this will give us logging
of how much time is being spent in total on database queries on our
staging and prod instances for each of the views we have -- which
should help a lot with debugging performance problems.

The code being patched is identical in Django 1.5, so I don't expect
any issues upgrading in the near future.

I may work on a patch to upstream Django to support this as well.

(imported from commit 08624c7a30f1fd192a972973e0380dd6a131d84e)
2013-02-12 12:01:02 -05:00
..
fixtures Rename zephyrs.json => messages.json in .gitignore. 2012-10-10 10:39:27 -04:00
jstemplates actions: Open the popover on more specific elements 2013-02-11 16:59:07 -05:00
lib Remove get_instance() from SimpleQueueClient 2013-02-11 18:05:57 -05:00
management management: add a remove_users_from_stream command. 2013-02-12 11:49:22 -05:00
migrations [manual][schema] Add an API for user presence (idle) information 2013-02-11 18:05:57 -05:00
static Allow the stream and user lists to scroll with mousewheel. 2013-02-12 11:54:34 -05:00
tests Fix wait condition in subscriptions frontend test 2013-02-06 13:49:37 -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 Log requestor email address for non-error requests too. 2013-02-12 11:07:36 -05:00
filters.py Filter out all cookies and the csrfmiddlewaretoken. 2013-02-05 16:12:48 -05:00
forms.py Move action functions from models.py to zephyr/lib/actions.py. 2013-01-11 16:11:03 -05:00
handlers.py Catch all exceptions when sending a message from AdminHumbugHandler 2013-02-05 16:12:48 -05:00
middleware.py Monkeypatch Django cursor to log query times even when DEBUG=False. 2013-02-12 12:01:02 -05:00
models.py [manual][schema] Add an API for user presence (idle) information 2013-02-11 18:05:57 -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 unit tests for active/idle presence 2013-02-11 18:05:57 -05:00
tornadoviews.py If a web client is requesting message that are too old, force a reload. 2013-01-23 11:33:07 -05:00
views.py [manual] Use rabbitmq for asynchronous presence updating 2013-02-11 18:05:57 -05:00