noosfero | Split members page in admins and non-admins (#646)

Daniela Feitosa gitlab at gitlab.com
Thu Aug 6 14:49:38 BRT 2015


New comment for Merge Request 646

https://gitlab.com/noosfero/noosfero/merge_requests/646#note_1839450


Daniela Feitosa

Same as above: `members_except_admins` is already loaded and calling `.count` on it will load all them again. 

In this case, you should use `size` to avoid touching the database.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150806/69020424/attachment.html>


More information about the Noosfero-dev mailing list