-
Notifications
You must be signed in to change notification settings - Fork 128
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
prefetch related #181
Comments
Unfortunately this is only supported if the query is restricted to one ContentType... |
Unfortunately, this caused major bugs with Django, and so had to be taken out. I'll leave open for now, however, as it should go back into once Django has released a few more versions and I can drop support for the broken ones. |
I'm using prefetch with watson search and so far it works fine.
|
Excellent. I'd take a MR that puts this feature back in. |
2016... |
Pardon? |
That’s 4 years back :-D |
Still I think it only works if you have only 1 model / content_type in the results and you have to know which one up front. |
Maybe interesting.
To limit the amount of queries you can do the following in the search view:
self.object_list = self.get_queryset().prefetch_related('object')
Cheers,
Robert
The text was updated successfully, but these errors were encountered: