Ernie Miller

No, I don't work in NYC, DC, or the valley, and I'm cool with that.

RSS Feed

Monthly Archives: August 2011

Rails 3.1 and the future of MetaWhere and MetaSearch

2 Comments

Rails 3.1.0 has dropped, and hours later I received my first “report” that MetaWhere doesn’t work with Rails 3.1. For those of you who read this blog or follow me on Twitter, this should come as no surprise. Still, I wanted to make a quick announcement here, if only to have a place to link people to when they inquire.
Read the rest of this post

Filed under Blog
Aug 31, 2011

Slow MySQL query? I’ll give you a hint.

2 Comments

I have a confession to make: I’ve placed too much trust in MySQL’s query planner. By the phrase, “too much trust,” I mean to say, “any trust, at all, ever.”
Read the rest of this post

Filed under Blog
Aug 30, 2011

The Cure for ActiveRecord Instantiation Anxiety: Valium

14 Comments

No, not the drug — the Ruby gem! Have you ever written code like this?

Model.where(:attribute => 'value').map(&:id).each do |model_id|
  # ...
end

I’m guessing you have, even if only as you were just getting started learning Rails/Ruby. It’s a bad idea.

Read the rest of this post

Filed under Blog
Aug 24, 2011

About

I'm Ernie Miller. But then, you probably knew that by looking at the page title, or the URL. I'm a Ruby programmer in Louisville, Kentucky. This blog used to be called "metautonomo.us", which I thought was kind of clever, but nobody, including me, could type it. Lesson learned.