Close
Glad You're Ready. Let's Get Started!

Let us know how we can contact you.

Thank you!

We'll respond shortly.

PIVOTAL LABS
Title: Standup 05/21/2009: Slow dependent destroy's

Ask for Help

“I have a dependent destroy that is taking 5sec+, What can I do to speed that up?”

  • try dependent delete on the leaves of the chain if you don’t have any after destroy hooks there that need running.
  • try cascade delete in your database (again as long as you don’t have any after destroys to worry about)
  • try marking the element at the top of the tree as deleted (using acts as paranoid or similar), then run an offline process to look for those records and destroy them and their dependent objects.
  • don’t worry about orphaned records and manually clean them up every once in a while (unrecommended but least development effort)

Comments
Post a Comment

Your Information (Name required. Email address will not be displayed with comment.)

* Copy This Password *

* Type Or Paste Password Here *