Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

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

Jonathan Barnes
Thursday, May 21, 2009

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)
  • 0 Shares
  • Share on Facebook
  • Share on Twitter

Add New Comment Cancel reply

Your email address will not be published.

Jonathan Barnes

Jonathan Barnes
Los Angeles

Recent Posts

  • Standup 08/13/2010: (css3 nth-child pseudo selector bug in safari)
  • Standup 08/12/2010: (Text encoding issues)
  • Standup 08/11/2010 (using VCR to mock out external dependencies and much more)
Subscribe to Jonathan's Feed

Author Topics

agile (11)
profiling (1)
rubymine (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >