mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Increase batch size of bulk_get_push_rules
and _get_joined_profiles_from_event_ids
. (#13300)
This commit is contained in:
parent
15edf23626
commit
7864f33e28
1
changelog.d/13300.misc
Normal file
1
changelog.d/13300.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Up batch size of `bulk_get_push_rules` and `_get_joined_profiles_from_event_ids`.
|
@ -228,6 +228,7 @@ class PushRulesWorkerStore(
|
|||||||
iterable=user_ids,
|
iterable=user_ids,
|
||||||
retcols=("*",),
|
retcols=("*",),
|
||||||
desc="bulk_get_push_rules",
|
desc="bulk_get_push_rules",
|
||||||
|
batch_size=1000,
|
||||||
)
|
)
|
||||||
|
|
||||||
rows.sort(key=lambda row: (-int(row["priority_class"]), -int(row["priority"])))
|
rows.sort(key=lambda row: (-int(row["priority_class"]), -int(row["priority"])))
|
||||||
|
@ -904,7 +904,7 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
|||||||
iterable=event_ids,
|
iterable=event_ids,
|
||||||
retcols=("user_id", "display_name", "avatar_url", "event_id"),
|
retcols=("user_id", "display_name", "avatar_url", "event_id"),
|
||||||
keyvalues={"membership": Membership.JOIN},
|
keyvalues={"membership": Membership.JOIN},
|
||||||
batch_size=500,
|
batch_size=1000,
|
||||||
desc="_get_joined_profiles_from_event_ids",
|
desc="_get_joined_profiles_from_event_ids",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user