Oh, and furthermore, this inefficiency didn't start having such dire effects until the table it was querying went from a couple thousand, to a couple million records.