dendrite/syncapi/storage/sqlite3
Till 0d0280cf5f
/sync performance optimizations (#2927)
Since #2849 there is no limit for the current state we fetch to
calculate history visibility. In large rooms this can cause us to fetch
thousands of membership events we don't really care about.
This now only gets the state event types and senders in our timeline,
which should significantly reduce the amount of events we fetch from the
database.

Also removes `MaxTopologicalPosition`, as it is an unnecessary DB call,
given we use the result in `topological_position < $1` calls.
2023-01-17 10:08:23 +01:00
..
deltas Implement history visibility on /messages, /context, /sync (#2511) 2022-08-11 18:23:35 +02:00
account_data_table.go Consistent *sql.Tx usage across sync API (#2744) 2022-09-28 10:18:03 +01:00
backwards_extremities_table.go Consistent *sql.Tx usage across sync API (#2744) 2022-09-28 10:18:03 +01:00
current_room_state_table.go Fix room summary returning wrong heroes (#2930) 2023-01-12 10:06:03 +01:00
filter_table.go Consistent *sql.Tx usage across sync API (#2744) 2022-09-28 10:18:03 +01:00
filtering.go Don't limit "state" (#2849) 2022-11-02 09:34:19 +00:00
ignores_table.go More writer fixes in the Sync API 2022-09-09 13:06:42 +01:00
invites_table.go Transactional isolation for /sync (#2745) 2022-09-30 12:48:10 +01:00
memberships_table.go Fix room summary returning wrong heroes (#2930) 2023-01-12 10:06:03 +01:00
notification_data_table.go Consistent *sql.Tx usage across sync API (#2744) 2022-09-28 10:18:03 +01:00
output_room_events_table.go Don't limit "state" (#2849) 2022-11-02 09:34:19 +00:00
output_room_events_topology_table.go /sync performance optimizations (#2927) 2023-01-17 10:08:23 +01:00
peeks_table.go Consistent *sql.Tx usage across sync API (#2744) 2022-09-28 10:18:03 +01:00
presence_table.go Fix newly joined users presence (#2854) 2022-12-08 08:25:03 +01:00
receipt_table.go Consistent *sql.Tx usage across sync API (#2744) 2022-09-28 10:18:03 +01:00
relations_table.go Event relations (#2790) 2022-10-13 14:50:52 +01:00
send_to_device_table.go Index on syncapi_send_to_device table (#2684) 2022-08-30 14:47:54 +01:00
stream_id_table.go Event relations (#2790) 2022-10-13 14:50:52 +01:00
syncserver.go Event relations (#2790) 2022-10-13 14:50:52 +01:00