Skip to content

Commit aff9aed

Browse files
committed
chore: add comment
1 parent e76b149 commit aff9aed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/datasource_toolkit/forestadmin/datasource_toolkit/decorators/decorator_stack.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def __init__(self, datasource: Datasource) -> None:
4141
last = self.early_op_emulate = DatasourceDecorator(last, OperatorsEmulateCollectionDecorator)
4242
last = self.early_op_equivalence = DatasourceDecorator(last, OperatorEquivalenceCollectionDecorator)
4343
last = self.relation = DatasourceDecorator(last, RelationCollectionDecorator)
44-
last = self.lazy_joins = DatasourceDecorator(last, LazyJoinCollectionDecorator) # type: ignore
44+
# lazy join is just before relation, to avoid relations to do useless stuff
45+
last = self.lazy_joins = DatasourceDecorator(last, LazyJoinCollectionDecorator)
4546
last = self.late_computed = DatasourceDecorator(last, ComputedCollectionDecorator)
4647
last = self.late_op_emulate = DatasourceDecorator(last, OperatorsEmulateCollectionDecorator)
4748
last = self.late_op_equivalence = DatasourceDecorator(last, OperatorEquivalenceCollectionDecorator)

0 commit comments

Comments
 (0)