If you happen to run #Akkoma upgraded from #Pleroma, make sure you check indexes...
Michael Westergaard @michael@westergaard.social
If you happen to run #Akkoma upgraded from #Pleroma, make sure you check indexes. Pleroma creates an index on activities that does not match with what Akkoma uses, and the migration might just miss it.
Went from spending 6+ seconds per post to milliseconds by adding
CREATE INDEX CONCURRENTLY activities_create_objects_coalesce
ON public.activities
USING btree (
(COALESCE(data->'object'->>'id', data->>'object'))
);(this is on a 4 core DB server; the peak from just before 23 till around 23:15 is me doing a vacuum full on the DB)