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 Performance > Re: slow delete
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 4154 of 4355
Post > Topic >>

Re: slow delete

by ahodgson@[EMAIL PROTECTED] (Alan Hodgson) Jul 4, 2008 at 08:48 AM

On Friday 04 July 2008, tv@[EMAIL PROTECTED]
 wrote:
> > My next question is: what is the difference between "select" and
> > "delete"? There is another table that has one foreign key to reference
> > the test (parent) table that I am deleting from and this foreign key
> > does not have an index on it (a 330K row table).
>

Yeah you need to fix that. You're doing 80,000 sequential scans of that 
table to do your delete. That's a whole lot of memory access ...

I don't let people here create foreign key relation****ps without matching 
indexes - they always cause problems otherwise.

-- 
Alan

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




 3 Posts in Topic:
Re: slow delete
rjessil@[EMAIL PROTECTED]  2008-07-04 05:30:06 
Re: slow delete
tv@[EMAIL PROTECTED]   2008-07-04 15:00:49 
Re: slow delete
ahodgson@[EMAIL PROTECTED  2008-07-04 08:48:19 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon Oct 13 4:12:42 CDT 2008.