Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
e610128c
Unverified
Commit
e610128c
authored
2 years ago
by
Erik Johnston
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add a `filter_event_for_clients_with_state` function (#13222)
parent
a1130117
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changelog.d/13222.misc
+1
-0
1 addition, 0 deletions
changelog.d/13222.misc
synapse/app/admin_cmd.py
+12
-1
12 additions, 1 deletion
synapse/app/admin_cmd.py
synapse/visibility.py
+387
-137
387 additions, 137 deletions
synapse/visibility.py
with
400 additions
and
138 deletions
changelog.d/13222.misc
0 → 100644
+
1
−
0
View file @
e610128c
Improve memory usage of calculating push actions for events in large rooms.
This diff is collapsed.
Click to expand it.
synapse/app/admin_cmd.py
+
12
−
1
View file @
e610128c
...
...
@@ -39,6 +39,7 @@ from synapse.replication.slave.storage.push_rule import SlavedPushRuleStore
from
synapse.replication.slave.storage.receipts
import
SlavedReceiptsStore
from
synapse.replication.slave.storage.registration
import
SlavedRegistrationStore
from
synapse.server
import
HomeServer
from
synapse.storage.database
import
DatabasePool
,
LoggingDatabaseConnection
from
synapse.storage.databases.main.room
import
RoomWorkerStore
from
synapse.types
import
StateMap
from
synapse.util
import
SYNAPSE_VERSION
...
...
@@ -60,7 +61,17 @@ class AdminCmdSlavedStore(
BaseSlavedStore
,
RoomWorkerStore
,
):
pass
def
__init__
(
self
,
database
:
DatabasePool
,
db_conn
:
LoggingDatabaseConnection
,
hs
:
"
HomeServer
"
,
):
super
().
__init__
(
database
,
db_conn
,
hs
)
# Annoyingly `filter_events_for_client` assumes that this exists. We
# should refactor it to take a `Clock` directly.
self
.
clock
=
hs
.
get_clock
()
class
AdminCmdServer
(
HomeServer
):
...
...
This diff is collapsed.
Click to expand it.
synapse/visibility.py
+
387
−
137
View file @
e610128c
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