New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selectin loading in Single Table Inheritance produces cross join #4241
Comments
Michael Bayer (@zzzeek) wrote: this affects 1.1 as well in a more general way however will keep this on the 1.2 series as 1.1 is moving into maintenance. https://gerrit.sqlalchemy.org/#/q/Ic2cbe94a5269c101b1f98da9a466180dd4452783 |
Changes by Michael Bayer (@zzzeek):
|
Changes by Michael Bayer (@zzzeek):
|
Michael Bayer (@zzzeek) wrote: Ensure select_from_entity adapter is used in adjust_for_single_inheritance Fixed issue in single-inheritance loading where the use of an aliased Change-Id: Ic2cbe94a5269c101b1f98da9a466180dd4452783 → 4f2d091 |
Changes by Michael Bayer (@zzzeek):
|
Michael Bayer (@zzzeek) wrote: Ensure select_from_entity adapter is used in adjust_for_single_inheritance Fixed issue in single-inheritance loading where the use of an aliased Change-Id: Ic2cbe94a5269c101b1f98da9a466180dd4452783 → c34a856 |
Tim Chen wrote: Thanks! Just curious - when do you plan to do release for this ? |
Michael Bayer (@zzzeek) wrote: this is a big one but I also have another big one going through today, so hopefully today |
Migrated issue, originally created by Tim Chen
The generated selectin load SQL looks like this:
You can see that user gets cross joined to itself, blowing up the result set unnecessarily. This becomes a huge problem for large tables.
The text was updated successfully, but these errors were encountered: