Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: Quick selec...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 3554 of 3717
Post > Topic >>

Re: Quick select, slow update - help with performance problems

by dev@[EMAIL PROTECTED] (Richard Huxton) Jul 1, 2008 at 12:17 PM

Gary Stainburn wrote:
> update used_diary set 
> 	ud_valet_completed=now(), ud_valet_completed_by=25 
> 	where ud_valet_completed is null and 
> 		ud_valet_required < CURRENT_DATE-'7 days'::interval
> 
> is still running after approx 1 1/2 minutes.  I've noticed that other
updates 
> also seem to take a long time.

Do you have any foreign keys referencing used_diary? Do they have the 
correct indexes on the referencing tables?
Any on-update triggers?

-- 
   Richard Huxton
   Archonet Ltd

-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 3 Posts in Topic:
Quick select, slow update - help with performance problems
gary.stainburn@[EMAIL PRO  2008-07-01 11:20:41 
Re: Quick select, slow update - help with performance problems
dev@[EMAIL PROTECTED] (R  2008-07-01 12:17:16 
Re: Quick select, slow update - help with performance problems
gary.stainburn@[EMAIL PRO  2008-07-01 13:42:14 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 20:59:56 CDT 2008.