Created
June 30, 2011 17:38
-
-
Save haarts/1056741 to your computer and use it in GitHub Desktop.
One slow query
This file contains hidden or 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
# This query takes only a fraction of a second locally and looong on heroku | |
# Heroku app name: floating-moon-774 | |
# MongoHQ 'eko', app: 'app558262' | |
Marker.where(:finished => true, :operator_comment => false).desc(:created_at).limit(4) | |
# via 'heroku console': | |
>> puts Time.now ; 100.times { Marker.where(:finished => true, :operator_comment => false).desc(:created_at).limit(4).entries} ; puts Time.now | |
Thu Jun 30 07:22:40 -0700 2011 | |
Thu Jun 30 07:23:29 -0700 2011 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment