If you upgraded to Pleroma 2.5 and it destroyed your database, you need to run pg_repack. I promise this will fix it, confirmed in multiple cases: https://gitlab.com/soapbox-pub/rebased/-/snippets/2463995
Then you need to switch to Rebased as your backend: https://gitlab.com/-/snippets/2411739
RT: https://shitposter.club/objects/e1d4fc28-06db-4640-b43d-6cc25f829792