Created
November 25, 2008 18:54
-
-
Save tongueroo/29033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## on my local dev box | |
mysql> SELECT articles.id, articles.author_id, articles.primary_image_id, articles.hit_count, articles.blurb, articles.teaser, articles.title, articles.permalink, articles.created_at, articles.comments_count | |
FROM articles | |
WHERE articles.deleted_at IS NULL AND articles.id IN | |
(SELECT taggable_id FROM taggings WHERE tag_id = 16 AND taggable_type = 'Article') | |
ORDER BY articles.id DESC LIMIT 5; | |
5 rows in set (3.23 sec) | |
## on production | |
mysql> SELECT articles.id, articles.author_id, articles.primary_image_id, articles.hit_count, articles.blurb, articles.teaser, articles.title, articles.permalink, articles.created_at, articles.comments_count | |
FROM articles | |
WHERE articles.deleted_at IS NULL AND articles.id IN | |
(SELECT taggable_id FROM taggings WHERE tag_id = 16 AND taggable_type = 'Article') | |
ORDER BY articles.id DESC LIMIT 5; | |
5 rows in set (0.00 sec) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment