Set autovacuum_vacuum_scale_factor per table, not globally. Your 50-row config table and your 500-million-row ledger need very different treatment.