From 7083be429a64d8aa0de47a760cc06ecbb0a9860f Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Fri, 10 Jun 2016 15:37:05 +0100 Subject: [PATCH] exclude notifications from job was being lazily loaded to get notification ids, so every time a job is loaded it would potentially select thousands of notifications from the database --- app/schemas.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/schemas.py b/app/schemas.py index 9c9406a15..7d20012cf 100644 --- a/app/schemas.py +++ b/app/schemas.py @@ -160,6 +160,7 @@ class JobSchema(BaseSchema): class Meta: model = models.Job + exclude = ('notifications',) class RequestVerifyCodeSchema(ma.Schema):