pt., 22.01.2016 o 17:44 użytkownik charettes <[email protected]> napisał:
> Hi Patryk, > > > > Currently we have Prefetch objects that kind of solve this problem for > M2M > > relations but perhaps it would be nice to also be able to use QuerySets > in > > select_related() or even in filter(). I don't think Prefetch objects are > best > > suited for that and I personally find having to instantiate them > explicitly > > kind of ugly. > > From what I understand you're not a fan of Prefetch objects but I think > most > of your problems can be solved by using them and custom managers as the > formers > also support foreign keys[1]. > Funny, I was aware of the featurebut always assumed prefetch_related would always execute an extra query instead of becoming an inner join. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CANw2pUHOmpeq%3Db4jbdQG%3D8qt_p_tTjDouaPMPe8AD3VnyMoYLw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
