08 Feb, 2012

1 commit

  •   * In app/controller/admin/users_controller.rb uses a User.find() method call that uses a :include argument to load the needed Persons with a single sql instead of one sql consult per user.
      * Only call User.find() if the format is csv or xml, to avoid making the
    huge sql consult every time the user loads the page.
    
      * With this change, the downloading time of a users list on csv format
    decreased 63%, while on xml format decreased 30%.
      * I've got no guarantee it's enough time to avoid timeout in production
    server, though.
      * Not tested on debian.
    
    (ActionItem2241)
    Larissa Reis
     

10 Sep, 2010

1 commit


06 Aug, 2010

1 commit