title: Performance of many to one relation in django
body: <p>I have a website which features famous people (each person is a row in the table <code>People</code>). For each famous person I would like to list related websites. I thought about creating a table called <code>Websites</code> and define it in the models.py module as follows:</p>
  
  <pre><code>class Websites(models.Model):
    website_url = models.CharField(max_length=200)
    related_person = models.ForeignKey(Person)
  </code></pre>
  
  <p>Then when I load a person's page I will run a wesbsites_set() query to fetch all related website.
  However, won't that kind of query "cost" in load time? Isn't there a better solution to design this problem so I won't have to run a query against the <code>Websites</code> table on each person's page load? The table itself will contain many rows!</p>
  
  <p>Thanks,</p>
  
  <p>Meir</p>