Re: Deleting parent object when many related objects exist is to slow

2010-04-29 Thread dzida
ise Django machinery created for that is enabled'? Or amybe there is some workaround to make this work more efficient I'm missing at the momment? Regards, Lukasz On 29 Kwi, 02:17, Christophe Pettus wrote: > On Apr 28, 2010, at 4:36 PM, dzida wrote: > > > "When Django deletes a

Deleting parent object when many related objects exist is to slow

2010-04-28 Thread dzida
Hi all, I came here with following problem: I was pretty happy user of Django ORM delete method until I found that it takes a lot of time when you want to delete object that has A LOT of objects connected to it via FK. Assume we have 3 models defined: class A(models.Model): pass class