QuerySet

  • Represents a collection of objects from your database.
  • Equates to a SELECT statement, and a filter is a limiting clause such as WHERE or LIMIT.
  • You get a QuerySet by using your model’s Manager.
  • The first time a QuerySet is evaluated – and, hence, a database query happens – Django saves the query results in the QuerySet’s cache and returns the results that have been explicitly requested (e.g., the next element, if the QuerySet is being iterated over).

Related concepts

QuerySet — Structure map

Clickable & Draggable!

QuerySet — Related pages: