Add indexes and pagination to improve app performance

This commit is contained in:
Peter Stockings
2026-03-09 21:29:16 +11:00
parent acad2def92
commit 7b36a6795d
8 changed files with 264 additions and 208 deletions

View File

@@ -33,7 +33,7 @@ def create_app():
# Set up the user_loader function
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id)) # Query the User model by ID
return db.session.get(User, int(user_id))
# Register blueprints
from app.routes.auth import auth