Merge "Change to use selectin for RBACs in SubnetPool DB load strategy" into stable/2024.1

This commit is contained in:
Zuul 2024-07-08 08:44:24 +00:00 committed by Gerrit Code Review
commit 64d6661e7d

View File

@ -302,7 +302,7 @@ class SubnetPool(standard_attr.HasStandardAttributes, model_base.BASEV2,
lazy='subquery')
rbac_entries = sa.orm.relationship(rbac_db_models.SubnetPoolRBAC,
backref='subnetpools',
lazy='joined',
lazy='selectin',
cascade='all, delete, delete-orphan')
api_collections = [subnetpool_def.COLLECTION_NAME]
collection_resource_map = {subnetpool_def.COLLECTION_NAME: