• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Speed-up FixtureReplacement (wincent.dev, 6c036a7)

Created 10/15/2007, updated 3/12/2024
  • snippets

Call send() directly rather than update_attribute(), thus avoiding a potentially expensive save() operation on each attribute.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Add custom db rake tasks (wincent.dev, 62dd8af)
Teach FixtureReplacement to avoid mass assignment (wincent.dev, 80cf713) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).