Browse Source

A note how to reduce the queries later..

sh4nks 11 years ago
parent
commit
b49219b789
1 changed files with 2 additions and 0 deletions
  1. 2 0
      flaskbb/app.py

+ 2 - 0
flaskbb/app.py

@@ -105,6 +105,8 @@ def configure_extensions(app):
         """
         Loads the user. Required by the `login` extension
         """
+        # TODO: Also load the permissions and
+        # the unread pm count with 1 big query
         return User.query.get(id)
 
     login_manager.init_app(app)