##// END OF EJS Templates
db: lazy join commit resolved data in order to prevent multi-query fetching.
marcink -
r1377:cf29766a default
parent child Browse files
Show More
@@ -2920,7 +2920,7 b' class ChangesetComment(Base, BaseModel):'
2920 resolved_comment = relationship('ChangesetComment', remote_side=comment_id, backref='resolved_by')
2920 resolved_comment = relationship('ChangesetComment', remote_side=comment_id, backref='resolved_by')
2921 author = relationship('User', lazy='joined')
2921 author = relationship('User', lazy='joined')
2922 repo = relationship('Repository')
2922 repo = relationship('Repository')
2923 status_change = relationship('ChangesetStatus', cascade="all, delete, delete-orphan")
2923 status_change = relationship('ChangesetStatus', cascade="all, delete, delete-orphan", lazy='joined')
2924 pull_request = relationship('PullRequest', lazy='joined')
2924 pull_request = relationship('PullRequest', lazy='joined')
2925 pull_request_version = relationship('PullRequestVersion')
2925 pull_request_version = relationship('PullRequestVersion')
2926
2926
General Comments 0
You need to be logged in to leave comments. Login now