I've heard tell that if you have a table that updates frequently but needs to be indexed you can get some performance by breaking it into two tables with the same primary key. One table with the stuff you index and another table with the stuff you update.
I hope this helps.
On Mon, Dec 22, 2008 at 8:30 AM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
Laszlo Nagy <gandalf@xxxxxxxxxxxx> writes:That was not the question that was asked.
>> If the table has some sort of FK relations it might be being slowed by
>> the need to check a row meant to be deleted has any children.
>>
> If you look at my SQL, there is only one column to be updated. That
> column has no foreign key constraint.
Updating indexes is certainly very far from being free. How many is
> My other idea was that there are so many indexes on this table, maybe
> the update is slow because of the indexes?
"many"?
regards, tom lane
--
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance