Slide 13
Slide 13 text
How is this done?
If the QuerySet is not evaluated, the previous query-
set is cloned, the method is applied on it (for example
filter() , exclude() ) and the new QuerySet is
returned. In some other cases, something else is
returned(for example get() , count() , first() )
When a QuerySet is evaluated, all the rows are
fetched unless there is an already cached result. So,
each QuerySet contains a cache, to minimize
database access.