During single-tag searches we look up the tag once in Post.fast_count and later on when rendering the wiki excerpt. Doing a raw query here meant that Rails couldn't cache the query, so it got ran again when rendering the excerpt.