Django - Caching
Given these models:
What will
class Publisher(models.Model):
name = models.CharField(max_length=100)
class Book(models.Model):
publisher = models.ForeignKey(Publisher, related_name='books', on_delete=models.CASCADE)
title = models.CharField(max_length=100)What will
Publisher.objects.prefetch_related('books') do when iterating over publishers and accessing publisher.books.all()?