Category Archives: Features

Post become apart of this category because I’ve deemed a bit more important than the normal post.

I don’t use Foreign Key Constraints with Rails

A couple of months back we had Nigel talking at WellRailed about a Foreign Key Constraint plugin he uses with Rails and then just this week the topic was brought up again for me with a client.  I’ve found it’s something that pops up every now and again.  Given this is such a polarizing issue [...]

Also posted in Miscellaneous | Tagged , , , , , , , , | 3 Comments

Be careful how you count in Rails

I’ve just encountered this problem yet again effecting code I’m working though, so I thought I’d quickly blog about it.
Put basically if you call count on a relationship it will always make a db call to see how many there are even if the relationship has been populated.  If you use size or any? they [...]

Also posted in Miscellaneous | Tagged , , | 3 Comments
  •  

  • About Nahum Wild

    I'm a High Performance Website Consultant specialising in Ruby on Rails deployments. In this blog I cover common problems I've seen and provide insight on optimisation techniques.

  • Recommend Me

    Follow me on Twitter