Skip to content
Snippets Groups Projects
  1. Feb 13, 2018
  2. Nov 28, 2017
    • Yorick Peterse's avatar
      Reuse authors when rendering event Atom feeds · 63180167
      Yorick Peterse authored
      Previously we'd use "event.author_email" which translates to
      "event.author.email". This would result in an extra query being executed
      _for every event_ just to get the same author's Email address.
      
      Instead of doing all this useless work we can just pass the User object
      returned by "event.author" since:
      
      1. This allows us to re-use the user object's Email address.
      2. Authors are eager-loaded, so this doesn't cause any N+1 queries.
      Verified
      63180167
  3. Apr 26, 2017
  4. Mar 21, 2017
  5. Mar 11, 2017
  6. Jun 03, 2016
  7. May 23, 2016
Loading