That's exactly what I look against on interviews. Slow SQL queries tend to work fine for some time, and as data grows, they start failing.
I'd want to hire a professional, who knows the perfect way of doing that, so for them it would be as easy to make it right, as to make it ugly.