mirror of https://github.com/watcha-fr/synapse
Run `ANALYZE` after fiddling with stats (#16849)
Introduced in #16833 Fixes #168441.103.0-whithout-watcha
parent
594842cf7f
commit
adf15c4f6b
@ -0,0 +1 @@ |
||||
Fix database performance regression due to changing Postgres table statistics. Introduced in v1.100.0rc1. |
@ -0,0 +1,16 @@ |
||||
-- |
||||
-- This file is licensed under the Affero General Public License (AGPL) version 3. |
||||
-- |
||||
-- Copyright (C) 2023 New Vector, Ltd |
||||
-- |
||||
-- This program is free software: you can redistribute it and/or modify |
||||
-- it under the terms of the GNU Affero General Public License as |
||||
-- published by the Free Software Foundation, either version 3 of the |
||||
-- License, or (at your option) any later version. |
||||
-- |
||||
-- See the GNU Affero General Public License for more details: |
||||
-- <https://www.gnu.org/licenses/agpl-3.0.html>. |
||||
|
||||
-- We need to do an ANALYZE after `01_auth_links_stats.sql.postgres`, where we |
||||
-- fiddled with the stats. |
||||
ANALYZE event_auth_chain_links; |
Loading…
Reference in new issue