mirror of
https://github.com/element-hq/synapse
synced 2024-09-04 19:30:06 +00:00
Comment
This commit is contained in:
parent
fadb01551a
commit
513188aa56
1 changed files with 4 additions and 0 deletions
|
@ -315,6 +315,10 @@ class StateStore(SQLBaseStore):
|
||||||
# against `state_groups_state` to fetch the latest state.
|
# against `state_groups_state` to fetch the latest state.
|
||||||
# It assumes that previous state groups are always numerically
|
# It assumes that previous state groups are always numerically
|
||||||
# lesser.
|
# lesser.
|
||||||
|
# The PARTITION is used to get the event_id in the greatest state
|
||||||
|
# group for the given type, state_key.
|
||||||
|
# This may return multiple rows per (type, state_key), but last_value
|
||||||
|
# should be the same.
|
||||||
sql = ("""
|
sql = ("""
|
||||||
WITH RECURSIVE state(state_group) AS (
|
WITH RECURSIVE state(state_group) AS (
|
||||||
VALUES(?::bigint)
|
VALUES(?::bigint)
|
||||||
|
|
Loading…
Reference in a new issue