> I'm not starting with fresh data every time, I'm usually checking for
> an existing record, then setting a timestamp and a boolean flag.
> I've run some profiling and it's about 8000-10,000 UPDATEs every 4
> hours. These are accompanied by about 800-1000 INSERTs.
If these are wide records (i.e. large text fields or lots of columns ) you may
want to consider raising your max_fsm_relation in postgresql.conf slightly,
to about 15,000.
You can get a better idea of a good FSM setting by running VACUUM FULL VERBOSE
after your next batch (this will lock the database temporarily) and seeing
how many data pages are "reclaimed", in total, by the vacuum. Then set your
FSM to at least that level.
And has anyone mentioned REINDEX on this thread?
Aglio Database Solutions
In response to
pgsql-performance by date
|Next:||From: Aaron Krowne||Date: 2003-03-16 06:01:25|
|Subject: postgresql meltdown on PlanetMath.org|
|Previous:||From: Hannu Krosing||Date: 2003-03-13 22:26:20|
|Subject: Re: Postgresql performance|