mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-19 14:04:34 -04:00
Create index on user_ips in the background
user_ips is kinda big, so really we want to add the index in the background once we're running. Replace the schema delta with one which will do that. I've done this in a way that's reasonably easy to reuse as there a few other indexes I need, and I don't suppose they will be the last.
This commit is contained in:
parent
68a92afcff
commit
ec5717caf5
3 changed files with 80 additions and 12 deletions
|
@ -13,4 +13,5 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
CREATE INDEX user_ips_device_id ON user_ips(user_id, device_id, last_seen);
|
||||
INSERT INTO background_updates (update_name, progress_json) VALUES
|
||||
('user_ips_device_index', '{}');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue