File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/DIRAC/DataManagementSystem/DB Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 127
127
),
128
128
"ftsJobs" : relationship (
129
129
FTS3Job ,
130
- lazy = "subquery " , # Immediately load the entirety of the object,
130
+ lazy = "selectin " , # Immediately load the entirety of the object,
131
131
# but use a subquery to do it
132
132
# This is to avoid the cartesian product between the three tables.
133
- # https://docs.sqlalchemy.org/en/latest/orm/loading_relationships.html#subquery-eager-loading
133
+ # https://docs.sqlalchemy.org/en/20/orm/queryguide/relationships.html#selectin-eager-loading
134
+ # We use selectin and not subquery because of https://github.com/DIRACGrid/DIRAC/issues/6814
134
135
cascade = "all, delete-orphan" , # if a File is removed from the list,
135
136
# remove it from the DB
136
137
passive_deletes = True , # used together with cascade='all, delete-orphan'
You can’t perform that action at this time.
0 commit comments