Skip to content

Instantly share code, notes, and snippets.

@VictorTpo
Created January 23, 2017 10:34
Show Gist options
  • Save VictorTpo/9fbe574acaa48163e7e94899cb2c4e34 to your computer and use it in GitHub Desktop.
Save VictorTpo/9fbe574acaa48163e7e94899cb2c4e34 to your computer and use it in GitHub Desktop.
scope = Celebrity.find(10).tweet
Celebrity Load (0.5ms)  SELECT  `celebrities`.* FROM `celebrities` WHERE `celebrities`.`id` = 10 LIMIT 1
Tweet Load (38.2ms)  SELECT `tweets`.* FROM `tweets` WHERE `tweets`.`celebrity_id` = 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment