Merge "Change the `StandardAttribute
` load method to "selectin""
This commit is contained in:
commit
90dcbe1f6b
@ -152,8 +152,11 @@ class HasStandardAttributes(object):
|
||||
# pylint: disable=method-hidden
|
||||
@declarative.declared_attr
|
||||
def standard_attr(cls):
|
||||
# NOTE(ralonsoh): the load method has been updated from "joined" to
|
||||
# "selectin". The first provides more complex queries but it is only
|
||||
# needed one query. This is needed by PostgreSQL (LP#2072567).
|
||||
return sa.orm.relationship(StandardAttribute,
|
||||
lazy='joined',
|
||||
lazy='selectin',
|
||||
cascade='all, delete-orphan',
|
||||
single_parent=True,
|
||||
uselist=False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user