Changes between Version 26 and Version 27 of QuerysetRefactorBranch


Ignore:
Timestamp:
10/29/2009 01:52:02 AM (6 years ago)
Author:
KevinSmith
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • QuerysetRefactorBranch

    v26 v27  
    1111Along with, and as part of, all the bug fixes mentioned above there are a number of new features in the branch. A number of these features are purely internal details, but there are a few that add extra public functionality.
    1212
    13  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 [http://www.djangoproject.com/documentation/db-api/#order-by-fields  order_by() documentation] for more information and some examples.
    14  2. Model inheritance is now possible. Both abstract base classes and multi-table inheritance are possible. See the [http://www.djangoproject.com/documentation/model-api/#model-inheritance model-api documentation] for details.
     13 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 [http://www.djangoproject.com/documentation/db-api/#order-by-fields  order_by() documentation] for more information and some examples.[http://www.mustuniversity.com/Must/UniversityDegree.asp university degrees]
     14
     15 2. Model inheritance is now possible. Both abstract base classes and multi-table inheritance are possible. See the [http://www.djangoproject.com/documentation/model-api/#model-inheritance model-api documentation] for details. [http://www.mustuniversity.com/Schools-Majors/Psychology.html Psychology Degree]
     16
    1517 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.
    1618 4. Slicing a queryset from a particular value to the end of a queryset is possible.
Back to Top