You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/06/23 14:54:31 UTC

(tooling-trusted-release) branch main updated: Use joined loading for another query

This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new 1969405  Use joined loading for another query
1969405 is described below

commit 19694059cb7b0a484bcce4ea2287376dd3cf9da3
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Mon Jun 23 15:53:50 2025 +0100

    Use joined loading for another query
---
 atr/db/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/atr/db/__init__.py b/atr/db/__init__.py
index e7c1005..cf5d44d 100644
--- a/atr/db/__init__.py
+++ b/atr/db/__init__.py
@@ -454,7 +454,7 @@ class Session(sqlalchemy.ext.asyncio.AsyncSession):
             query = query.where(models.ReleasePolicy.pause_for_rm == pause_for_rm)
 
         if _project:
-            query = query.options(select_in_load(models.ReleasePolicy.project))
+            query = query.options(joined_load(models.ReleasePolicy.project))
 
         return Query(self, query)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org