Kaydet (Commit) 41e02ab3 authored tarafından Tim Graham's avatar Tim Graham

Clarified purpose of "Database backend API" backwards incompatible changes section.

üst fc13a697
...@@ -490,6 +490,9 @@ Backwards incompatible changes in 1.11 ...@@ -490,6 +490,9 @@ Backwards incompatible changes in 1.11
Database backend API Database backend API
-------------------- --------------------
This section describes changes that may be needed in third-party database
backends.
* The ``DatabaseOperations.time_trunc_sql()`` method is added to support * The ``DatabaseOperations.time_trunc_sql()`` method is added to support
``TimeField`` truncation. It accepts a ``lookup_type`` and ``field_name`` ``TimeField`` truncation. It accepts a ``lookup_type`` and ``field_name``
arguments and returns the appropriate SQL to truncate the given time field arguments and returns the appropriate SQL to truncate the given time field
......
...@@ -280,6 +280,9 @@ bytestrings in certain code paths. ...@@ -280,6 +280,9 @@ bytestrings in certain code paths.
Database backend API Database backend API
-------------------- --------------------
This section describes changes that may be needed in third-party database
backends.
* The ``DatabaseOperations.datetime_cast_date_sql()``, * The ``DatabaseOperations.datetime_cast_date_sql()``,
``datetime_cast_time_sql()``, ``datetime_trunc_sql()``, and ``datetime_cast_time_sql()``, ``datetime_trunc_sql()``, and
``datetime_extract_sql()`` methods now return only the SQL to perform the ``datetime_extract_sql()`` methods now return only the SQL to perform the
...@@ -292,13 +295,6 @@ Database backend API ...@@ -292,13 +295,6 @@ Database backend API
* The first argument of ``SchemaEditor._alter_column_type_sql()`` is now * The first argument of ``SchemaEditor._alter_column_type_sql()`` is now
``model`` rather than ``table``. ``model`` rather than ``table``.
* To improve performance when streaming large result sets from the database,
:meth:`.QuerySet.iterator` now fetches 2000 rows at a time instead of 100.
The old behavior can be restored using the ``chunk_size`` parameter. For
example::
Book.objects.iterator(chunk_size=100)
Dropped support for Oracle 11.2 Dropped support for Oracle 11.2
------------------------------- -------------------------------
...@@ -417,6 +413,13 @@ Miscellaneous ...@@ -417,6 +413,13 @@ Miscellaneous
* The default size of the Oracle test tablespace is increased from 20M to 50M * The default size of the Oracle test tablespace is increased from 20M to 50M
and the default autoextend size is increased from 10M to 25M. and the default autoextend size is increased from 10M to 25M.
* To improve performance when streaming large result sets from the database,
:meth:`.QuerySet.iterator` now fetches 2000 rows at a time instead of 100.
The old behavior can be restored using the ``chunk_size`` parameter. For
example::
Book.objects.iterator(chunk_size=100)
.. _deprecated-features-2.0: .. _deprecated-features-2.0:
Features deprecated in 2.0 Features deprecated in 2.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment