mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 16:43:53 +01:00
Don't make temporary list
This commit is contained in:
parent
b2399f6281
commit
f4f223aa44
1 changed files with 2 additions and 3 deletions
|
@ -1266,9 +1266,8 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
|
|||
current_search = next_to_search
|
||||
next_to_search = set()
|
||||
else:
|
||||
lst = list(next_to_search)
|
||||
current_search = set(lst[:100])
|
||||
next_to_search = set(lst[100:])
|
||||
current_search = set(islice(next_to_search, 100))
|
||||
next_to_search -= current_search
|
||||
|
||||
# Check if state groups are referenced
|
||||
sql = """
|
||||
|
|
Loading…
Reference in a new issue