Skip to content
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

add support for QuerySet.prefetch_related() #74

Open
timgraham opened this issue Jul 10, 2024 · 2 comments
Open

add support for QuerySet.prefetch_related() #74

timgraham opened this issue Jul 10, 2024 · 2 comments

Comments

@timgraham
Copy link
Collaborator

If feasible.

Django test app: prefetch_related

@WaVEV WaVEV self-assigned this Sep 1, 2024
@WaVEV
Copy link
Collaborator

WaVEV commented Sep 3, 2024

The prefect_related injects RawSQL extras using the query's extra method (see here). This feature is tightly coupled with SQL engines, so we likely can't implement it without modifying some base compiler flow. We might consider overriding the get_select method in the base compiler to transform the extra into columns or references instead of a RawQuery but I don't know if it is feasible.

@timgraham
Copy link
Collaborator Author

Thanks for checking. We can defer this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants