Changes between Version 12 and Version 13 of QuerysetRefactorBranch
- Timestamp:
- Apr 17, 2008, 12:45:38 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QuerysetRefactorBranch
v12 v13 26 26 27 27 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.txtdocumentation 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. 29 29 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. 30 30 4. Slicing a queryset from a particular value to the end of a queryset is possible.