April 2010
2 posts
MongoSF Slides - Practical Ruby Projects with... →
Slides for Practical Ruby Projects with MongoDB at... →
These are the slides for a talk I gave at the LaRuby meetup on April 8, 2010.
March 2010
1 post
3 tags
Beware of ActiveRecord::Calculations.count
Today, whilst engaged in some performance debugging, I discovered what I would assume is, to most, an easily missed intricacy of ActiveRecord. I am referring to the difference between using count and size on an ActiveRecord collection.
Consider this example:
Whereas calling size on an ActiveRecord collection simply counts the elements in the ruby array, the count method actually generates a...
February 2010
2 posts
Slides for Intro to MongoDB →
Here are my slides from talk I gave last night at the LA Web Meetup titled “Intro to MongoDB”.
5 tags
Thoughts and Observations on Test Suite...
Lately, we’ve been paying a lot of attention to our test suite’s performance, or rather, lack thereof. With 1000+ tests, we’re running at about 160 seconds. Yikes.
Sure, I’ve heard a lot of horror stories about test suites taking 10+ minutes to run, but we’ve been noticing a measurable deterioration in our suite’s performance lately, especially when I look...