summary refs log tree commit diff
path: root/synapse/storage/schema/delta
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-08-06 17:51:15 +0100
committerNeil Johnson <neil@fragile.org.uk>2018-08-06 17:51:15 +0100
commit16d78be315fd71d8bdb39af53317b3f7dd1dbb32 (patch)
tree39de239fa4c86067162a60a8a63548087b8c541b /synapse/storage/schema/delta
parentpy3 fix (diff)
downloadsynapse-16d78be315fd71d8bdb39af53317b3f7dd1dbb32.tar.xz
make use of _simple_select_one_onecol, improved comments
Diffstat (limited to 'synapse/storage/schema/delta')
-rw-r--r--synapse/storage/schema/delta/51/monthly_active_users.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/schema/delta/51/monthly_active_users.sql b/synapse/storage/schema/delta/51/monthly_active_users.sql
index f2b6d3e31e..10aac90ce1 100644
--- a/synapse/storage/schema/delta/51/monthly_active_users.sql
+++ b/synapse/storage/schema/delta/51/monthly_active_users.sql
@@ -16,6 +16,10 @@
 -- a table of monthly active users, for use where blocking based on mau limits
 CREATE TABLE monthly_active_users (
     user_id TEXT NOT NULL,
+    -- Last time we saw the user. Not guaranteed to be accurate due to rate limiting
+    -- on updates, Granularity of updates governed by
+    -- syanpse.storage.monthly_active_users.LAST_SEEN_GRANULARITY
+    -- Measured in ms since epoch.
     timestamp BIGINT NOT NULL
 );