By nahum | October 23, 2008
Over the weekend I moved this blog from being hosted on my Dreamhost account to one of my 256mb Slicehost servers.
I’ve done this mainly to stop paying for hosting twice, but also because if I’m going to be talking about performance I can’t possibly have a slow blog and my options were limited with the [...]
By nahum | October 17, 2008
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 [...]
By nahum | October 13, 2008
I’ve changed my home server from Centos 5.1 (32bit) to Ubuntu Desktop 8.04 (64bit) due to the CentOS drive crashing – it was real old. As my server doesn’t actually have a screen when it’s carefully hidden away I initially enabled Remote Desktop for GUI access. This worked ok, although slightly sluggish, in [...]
By nahum | September 12, 2008
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 [...]
By nahum | September 11, 2008
I recently gave a presentation about using named_scopes to WellRailed and while it was still on my mind I thought that I’d cover named_scope in conjunction with some performance optimisation work I’ve been doing.
I used to use relationship extensions lots and it always irked me that I was putting business logic for a model, say [...]