-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Plans supported by prefetch_related #27
Comments
You have select_related that works for both ForeignKey and ManyToMany relations. It's fetching the related models in the same query (same db call) and populating the result with nested models. |
Is this something you mean? Maybe the documentation is not clear, let me know. |
I need to try it later. Yes, the documentation could be clearer, because in Django select_related and prefetch_related are different. |
Ah yeah, I think I will add Right now The difference is that in
But even without
Good idea, thanks. |
Thanks for the detailed answer, but i can't post a pr yet because I'm not familiar with the ormar implementation, or can you explain in the dev docs the proper way to get into the project and contribute? |
OK, it took more time and was quite a lot more complicated than I initially thought but should be closed in #54. It supports When More details in the docs. |
Wow, very efficient, can't wait to try it! |
prefetch_related is helpful in many situations, is there a plan to support it?
The text was updated successfully, but these errors were encountered: