Skip to content

Instantly share code, notes, and snippets.

@bogdan
Created April 19, 2016 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdan/d7569b11aaa7060c2ec25c8dd607ffd8 to your computer and use it in GitHub Desktop.
Save bogdan/d7569b11aaa7060c2ec25c8dd607ffd8 to your computer and use it in GitHub Desktop.
production >> User.connection.select_value("SELECT 1 AS one FROM `origins` use index (index_purchases_migrated_on_visitor_id) WHERE `origins`.`visitor_id` = 30388798 AND `origins`.`site_id` = 6854 LIMIT 1")
(79.8ms) SELECT 1 AS one FROM `origins` use index (index_purchases_migrated_on_visitor_id) WHERE `origins`.`visitor_id` = 30388798 AND `origins`.`site_id` = 6854 LIMIT 1
=> nil
production >> User.connection.select_value("SELECT 1 AS one FROM `origins` WHERE `origins`.`visitor_id` = 30388798 AND `origins`.`site_id` = 6854 LIMIT 1")
(270.3ms) SELECT 1 AS one FROM `origins` WHERE `origins`.`visitor_id` = 30388798 AND `origins`.`site_id` = 6854 LIMIT 1
=> nil
production >>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment