sahana / eden

Sahana Eden is an Open Source Humanitarian Platform which can be used to provide solutions for Disaster Management, Development, and Environmental Management sectors.. Please sign CLA when submitting pull requests: http://bit.ly/SSF-eCLA

Home Page:http://eden.sahanafoundation.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Optimise by not loading auth_user_temp every request

flavour opened this issue · comments

Every request loads all tables used by AuthS3() in modules/s3/s3aaa.py
This currently includes the S3-custom table 'auth_user_temp' which is really not necessary as this only gets used as part of the user-registration use case.
Ideally this should be moved to it's own class in modules/s3db/auth.py so that it is only loaded when required.
This will mean the table has to be instantiated via s3db. instead of just db.

I'll take a pass at trying to implement this!

Whoops, I didn't use the right keyword in the commit message for the issue close automatically. @flavour can you close this issue?