master
.We have a model with quite a few (maybe 10) relationships (some one-to-many, some many-to-one). When showing the details for such an object, all those relationships are joinedload:ed:
Lines 804 to 805 in fadf4d6
This causes a combinatorial explosion when those relationships get bigger. Let's say one relation has 10 objects, another has 15 and a third has 37. This causes the resulting query to return 10*15*37 = 5550
rows! Doing that with three separate queries (selectinload or just default lazyload) would load the expected 1+10+15+37 = 63
rows.
This seems to have been introduced in #212.
Changing the joinedload
on L805 to selectinload
or simply removing L804-805 resolves the issue in my case. If the joinedload is really required to prevent regressions, maybe we could have a way to override what type of eager load is used?
No response
No cross product between relations in detail view.
No response
No response
SQLAdmin 0.16.0
PostgreSQL 14.7
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too