Re: Slow update with simple query - Mailing list pgsql-performance

From Mark Lewis
Subject Re: Slow update with simple query
Date
Msg-id 1166032273.27428.98.camel@archimedes
Whole thread Raw
In response to Re: Slow update with simple query  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Slow update with simple query  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
But he's using 8.1.4-- in that version, an explain analyze would list
the time taken to go through triggers, so the fact that we don't see any
of those lines means that it can't be constraint checking, so wouldn't
it have to be the index update overhead?

-- Mark

On Wed, 2006-12-13 at 11:46 -0500, Tom Lane wrote:
> Arnaud Lesauvage <thewild@freesurf.fr> writes:
> > Indeed, the new query does not perform that well :
>
> > "Hash Join  (cost=112.75..307504.97 rows=2024869 width=355) (actual time=53.995..246443.811 rows=2020061 loops=1)"
> > ...
> > "Total runtime: 2777844.892 ms"
>
> > I removed all unnecessary indexes on t1 before running the query (I left the index on uid and the multicolumn index
containindthe updated field). 
> > I believe the multicolumn-functional-index computation is taking some time here, isn't it ?
>
> Given that the plan itself only takes 246 sec, there's *something*
> associated with row insertion that's eating the other 2500+ seconds.
> Either index entry computation or constraint checking ...
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org

pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Insertion to temp table deteriorating over time
Next
From: Ron
Date:
Subject: Re: New to PostgreSQL, performance considerations