Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
312ae747
Commit
312ae747
authored
6 years ago
by
Neil Johnson
Browse files
Options
Downloads
Patches
Plain Diff
typos
parent
e54794f5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/storage/monthly_active_users.py
+2
-2
2 additions, 2 deletions
synapse/storage/monthly_active_users.py
synapse/storage/schema/delta/51/monthly_active_users.sql
+1
-1
1 addition, 1 deletion
synapse/storage/schema/delta/51/monthly_active_users.sql
with
3 additions
and
3 deletions
synapse/storage/monthly_active_users.py
+
2
−
2
View file @
312ae747
...
...
@@ -50,7 +50,7 @@ class MonthlyActiveUsersStore(SQLBaseStore):
# If MAU user count still exceeds the MAU threshold, then delete on
# a least recently active basis.
# Note it is not possible to write this query using OFFSET due to
# incompatibilities in how sqlite an postgres support the feature.
# incompatibilities in how sqlite an
d
postgres support the feature.
# sqlite requires 'LIMIT -1 OFFSET ?', the LIMIT must be present
# While Postgres does not require 'LIMIT', but also does not support
# negative LIMIT values. So there is no way to write it that both can
...
...
@@ -78,7 +78,7 @@ class MonthlyActiveUsersStore(SQLBaseStore):
@cached
(
num_args
=
0
)
def
get_monthly_active_count
(
self
):
"""
Generates current count of monthly active users
.abs
"""
Generates current count of monthly active users
Returns:
Defered[int]: Number of current monthly active users
...
...
This diff is collapsed.
Click to expand it.
synapse/storage/schema/delta/51/monthly_active_users.sql
+
1
−
1
View file @
312ae747
...
...
@@ -18,7 +18,7 @@ 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
-- sy
a
npse.storage.monthly_active_users.LAST_SEEN_GRANULARITY
-- syn
a
pse.storage.monthly_active_users.LAST_SEEN_GRANULARITY
-- Measured in ms since epoch.
timestamp
BIGINT
NOT
NULL
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment