* CurrentUser.dmail_count caused an unnecessary COUNT(*). * CurrentUser.dmails.unread.present? caused *all* unread dmails to be loaded. We want to only load the first one.
* CurrentUser.dmail_count caused an unnecessary COUNT(*). * CurrentUser.dmails.unread.present? caused *all* unread dmails to be loaded. We want to only load the first one.