Re: EOF, MySQL and DELETE CASCADE
Re: EOF, MySQL and DELETE CASCADE
- Subject: Re: EOF, MySQL and DELETE CASCADE
- From: Mike Schrag <email@hidden>
- Date: Tue, 24 Feb 2009 12:54:55 -0500
OK, I have a case like this where I have a one to many and the many
can be up to 500,000 items. In that case, I have a one-sided
relationship (to-one in the detail items) defined in EOModeler and
custom business logic for managing the items in the relationship.
For deleting, I simply use
ERXEOAccessUtilities.deleteRowsDescribedByQualifier( .... ); which
bypasses EOF and just does SQL delete in one statement.
just know that your snapshot cache is now out of sync unless you do
something more ...
ms
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden