zulip/zerver
Steve Howell d24d8e4b36 Optimize showing subscribers on the settings page.
If you expand subscribers on your settings page, you will now see
a query like this in your postgres logs:

SELECT "zerver_userprofile"."email"
FROM "zerver_subscription" INNER JOIN "zerver_recipient" ON ("zerver_subscription"."recipient_id" = "zerver_recipient"."id") INNER JOIN "zerver_userprofile" ON ("zerver_subscription"."user_profile_id" = "zerver_userprofile"."id") WHERE ("zerver_recipient"."type" = 2  AND "zerver_subscription"."active" = true  AND "zerver_recipient"."type_id" = 40  AND "zerver_userprofile"."is_active" = true )

The join's still complicated, but the list of fields is one instead of 40+.

(imported from commit 48de1f888193a4d23fcea52d0b633d134e4a3ff7)
2013-09-19 08:52:53 -04:00
..
fixtures tests: Add Github issues tests 2013-09-17 13:55:39 -04:00
lib Optimize showing subscribers on the settings page. 2013-09-19 08:52:53 -04:00
management Make populate_db set the is_bot flag on bot accounts. 2013-09-18 16:16:17 -04:00
migrations [schema] Add muted_topics to UserProfile 2013-09-11 16:47:37 -04:00
templatetags [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
tests/frontend Use fold_case:true for subscribers Dict 2013-09-17 10:32:13 -04:00
views Optimize get_subscribers back end. 2013-09-19 08:52:53 -04:00
__init__.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
context_processors.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
decorator.py Comment that authenticated_rest_api_view does Basic auth 2013-09-04 13:19:22 -04:00
exceptions.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
filters.py Change Humbug => Zulip in name of exception filter module. 2013-08-07 10:00:07 -04:00
finders.py Change Humbug => Zulip in name of finder module. 2013-08-07 10:00:07 -04:00
forms.py Removed confusing ALLOW_REGISTER setting. 2013-08-12 16:16:26 -04:00
handlers.py Change Humbug => Zulip in names of error reporting handlers. 2013-08-07 10:00:07 -04:00
middleware.py Blacklist some webreq urls that we don't want to store for metrics 2013-09-18 11:56:25 -04:00
models.py Warn bot owners when a bot sends a message to a nonexistent stream 2013-09-18 15:54:13 -04:00
openid.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
retention_policy.py [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00
static_header.txt Change Humbug => Zulip in text/comments. 2013-08-07 10:00:07 -04:00
storage.py Change Humbug => Zulip in name of storage module. 2013-08-07 10:00:07 -04:00
tests.py Add test_multi_user_subscription() to backend tests. 2013-09-19 08:52:53 -04:00
tornado_callbacks.py Don't cache UserPresence info. 2013-09-17 14:51:56 -04:00
tornadoviews.py Let clients specify how long queues shall live, within limits 2013-08-20 16:19:07 -04:00