What is the difference between table level operation and record-level operation?
<p>While going through the documentation of django to muster the detailed knowledge, i endured the word 'table level operation' and 'record level operation'. What is the difference in between them? Could anyone please explain me this 2 word with example? Does they have other name too? </p>

<p>P.S I am not asking their difference just because i feel they are alike but i feel it can be more clear to comprehend this way.</p>

<p>In the context of Django, record level operations are those that on a single records. An example is when you define custom methods in a model:</p>

<pre><code>class Person(models.Model):
    first_name = models.CharField(max_length=50)
    last_name = models.CharField(max_length=50)
    birth_date = models.DateField()

    def baby_boomer_status(self):
        "Returns the person's baby-boomer status."
        import datetime
        if self.birth_date &lt; datetime.date(1945, 8, 1):
            return "Pre-boomer"
        elif self.birth_date &lt; datetime.date(1965, 1, 1):
            return "Baby boomer"
        else:
            return "Post-boomer"
</code></pre>

<p>Table level operations are those that act on a set of records and an example of these are when you define a ModelManager for a class:</p>

<pre><code># First, define the Manager subclass.
class DahlBookManager(models.Manager):
    def get_queryset(self):
        return super(DahlBookManager, self).get_queryset().filter(author='Roald Dahl')

# Then hook it into the Book model explicitly.
class Book(models.Model):
    title = models.CharField(max_length=100)
    author = models.CharField(max_length=50)

    objects = models.Manager() # The default manager.
    dahl_objects = DahlBookManager() # The Dahl-specific manager.
</code></pre>

<p>PS: I took these examples from django documentation.</p>

python django database django-models