zulip/zilencer
Steve Howell c4e3cfebb0 presence: Add realm_id to UserPresence.
This index is intended to optimize the performance of the very
frequently run query of "what is the presence status of all users in a
realm?".

Main changes:
    - add realm_id to UserPresence
    - add index for realm_id
    - backfill realm_id for old rows
    - change all writes to UserPresence to include
      realm_id

The index is of this form:

    "zerver_userpresence_realm_id_5c4ef5a9" btree (realm_id)

We will create an index on (realm_id, timestamp) in a
future commit, but I think it's a bit faster if you do
the backfill before the index.

There's also a minor tweak to the populate_db script.
2020-02-10 17:21:45 -08:00
..
lib billing: Move zilencer/lib/stripe to corporate. 2018-10-01 15:43:44 -07:00
management presence: Add realm_id to UserPresence. 2020-02-10 17:21:45 -08:00
migrations python: Sort migrations/management command imports with isort. 2020-01-14 13:07:47 -08:00
README.md Update comments to rename Local Server => Enterprise. 2013-11-12 15:57:02 -05:00
__init__.py
forms.py Extend lint-all to check for newlines at the end of files. 2016-03-17 23:03:56 -07:00
models.py remote data: Send RealmAuditLog data. 2019-10-08 17:27:29 -07:00
urls.py push_notifications: Clear PushDeviceToken on API key change. 2019-11-19 15:37:43 -08:00
views.py push_notifications: Clear PushDeviceToken on API key change. 2019-11-19 15:37:43 -08:00

README.md

ZILENCER -- The Zulip License Manager

This app is the place for storing state about various deployments of Zulip that exist in the world.