amschaal / bioshare

MIT License
6 stars 2 forks source link

Fix query performance in list_directory view #40

Closed amschaal closed 7 years ago

amschaal commented 7 years ago

The last line before rendering the template has bad performance:

 emails = [u.email for u in get_users_with_perms(share, attach_perms=False, with_superusers=False, with_group_users=True)]

Must replace the guardian function, "get_users_with_perms" with something more efficient.