Created
November 3, 2015 13:23
-
-
Save NetguruGist/6b8a6b5df4a69018237b to your computer and use it in GitHub Desktop.
query3 ruby
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
> ActiveRecord::Base.connection.execute("select count(*) from ( select distinct market_id from selections) as foo ").entries | |
(3717.6ms) select count(*) from ( select distinct market_id from selections) as foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment