Summarized from @richvdh's reply at https://github.com/matrix-org/synapse/pull/13589#discussion_r961116999