dendrite/roomserver/storage/shared
Neil Alexander 2b177940c9 State storage refactor (#1839)
* Hash-deduplicated state storage (and migrations) for PostgreSQL and SQLite

* Refactor droomserver database setup for migrations

* Fix conflict statements

* Update migration names

* Set a boundary for old to new block/snapshot IDs so we don't rewrite them more than once accidentally

* Create sequence if not exists

* Fix boundary queries

* Fix boundary queries

* Use Query

* Break out queries a bit

* More sequence tweaks

* Query parameters are not playing the game

* Injection escaping may not work for CREATE SEQUENCE after all

* Fix snapshot sequence name

* Use boundaried IDs in SQLite too

* Use IFNULL for SQLite

* Use COALESCE in PostgreSQL

* Review comments @Kegsay
2021-05-02 14:53:17 +03:00
..
latest_events_updater.go Add RoomInfo cache, remove RoomServerRoomNIDsCache (#1646) 2020-12-16 12:15:12 +00:00
membership_updater.go Implement forgetting about rooms (#1572) 2020-11-05 10:19:23 +00:00
prepare.go Merge Updater structs (#1069) 2020-05-28 11:15:21 +01:00
storage.go State storage refactor (#1839) 2021-05-02 14:53:17 +03:00