Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Also it is possible but highly inadvisable to disable auto-vacuums.

When I was running my first Postgres cluster (the reddit databases), I had no idea what vacuuming was for. All I knew was that every time it ran it slowed everything down. Being dumb, I didn't bother to read the docs, I just disabled the auto vacuum.

Eventually writes stopped and I had to take a downtime to do a vacuum. Learned a few important lessons that day. I also then set it up to do an aggressive vacuum every day at 3am, which was the beginning of low traffic time, so that the auto-vacuuming didn't have as much work to do during the day.



Everytime I've seen people having "vacuuming too expensive" problems, the solution was "more vacuum"!


"vacuum during the times when I want instead of randomly at peak traffic"


As it turns out, yes!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: