mirror of
https://github.com/element-hq/synapse.git
synced 2026-08-01 11:30:44 +00:00
Avoid an n+1 query problem and fetch the bundled aggregations for m.annotation relations in a single query instead of a query per event. This applies similar logic for as was previously done for edits in8b309adb43(#11660) and threads inb65acead42(#11752).