8b103f46a7
See https://github.com/matrix-org/synapse/pull/14531#discussion_r1035363453 This does mean that I had to leave one SQLite specific query in place. But at least we're using the same recursive query pattern now.