Why would you reserve ram for swap???
It's a useful way of squeezing out a few GB more. Worked wonders on my starved Steam Deck and allowed me to play Cities Skylines smoothly and without crashes.
But on a DB heavy server that is apparently not a good idea. I've switched to a swap file.
Monitor queries to ensure you’re not seeing table scans due to missing indexes.
There are definitely some unoptimised queries and missing indexes. Lemmy 1.0 will supposedly fix a lot of them.