
That question is too broad, but here are some pointers about configuring autovacuum:
For tables that receive bulk inserts, run an explicit VACUUM afterwards or use PostgreSQL v13.
For tables with many updates, a fillfactor of 70 to 90 (depending on row size) is a good thing if no updated column...