Merge "Make listing security groups faster" into stable/juno

This commit is contained in:
Jenkins 2015-03-12 03:09:46 +00:00 committed by Gerrit Code Review
commit e14f0af9d6
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class SecurityGroupRule(model_base.BASEV2, models_v2.HasId,
remote_ip_prefix = sa.Column(sa.String(255))
security_group = orm.relationship(
SecurityGroup,
backref=orm.backref('rules', cascade='all,delete'),
backref=orm.backref('rules', cascade='all,delete', lazy='joined'),
primaryjoin="SecurityGroup.id==SecurityGroupRule.security_group_id")
source_group = orm.relationship(
SecurityGroup,