Changes between Version 12 and Version 13 of QuerysetRefactorBranch


Ignore:
Timestamp:
Apr 17, 2008, 12:45:38 AM (17 years ago)
Author:
dan <dan@…>
Comment:

inserted link to referenced model-api docs

Legend:

Unmodified
Added
Removed
Modified
  • QuerysetRefactorBranch

    v12 v13  
    2626
    2727 1. Ordering querysets across related models has a new syntax that is the same as the way you specify relations in a filter: {{{field1__field2__field3}}}, etc. The new syntax is more natural and consistent, as well as helping solve a few bugs. See the {{{order_by()}}} documentation in db-api.txt for more information and some examples.
    28  2. Model inheritance is now possible. Both abstract base classes and multi-table inheritance are possible. See the model-api.txt documentation for details.
     28 2. Model inheritance is now possible. Both abstract base classes and multi-table inheritance are possible. See the [source:/django/branches/queryset-refactor/docs/model-api.txt model-api.txt] documentation for details.
    2929 3. The {{{__iter__()}}} method on querysets does not pull all the results into memory immediately. This reduces memory usage for large querysets where you don't end up accessing all the results. Queryset caching still occurs, though, so a single queryset object will only hit the database once. This change means that testing the boolean value of a queryset will only pull in the first few rows of the result, not all of them.
    3030 4. Slicing a queryset from a particular value to the end of a queryset is possible.
Back to Top