summary refs log tree commit diff
path: root/synapse/handlers/typing.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-07-07 12:11:35 +0100
committerGitHub <noreply@github.com>2020-07-07 12:11:35 +0100
commit67d7756fcfb43c2b01a83da10b4f36635fa7b441 (patch)
treef193847474b4ef687e522add3d011f66b9407b16 /synapse/handlers/typing.py
parentAdd libwebp dependency to Dockerfile (#7791) (diff)
downloadsynapse-67d7756fcfb43c2b01a83da10b4f36635fa7b441.tar.xz
Refactor getting replication updates from database v2. (#7740)
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r--synapse/handlers/typing.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py
index 6c7abaa578..879c4c07c6 100644
--- a/synapse/handlers/typing.py
+++ b/synapse/handlers/typing.py
@@ -294,6 +294,9 @@ class TypingHandler(object):
         rows.sort()
 
         limited = False
+        # We, unusually, use a strict limit here as we have all the rows in
+        # memory rather than pulling them out of the database with a `LIMIT ?`
+        # clause.
         if len(rows) > limit:
             rows = rows[:limit]
             current_id = rows[-1][0]