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

This commit is contained in:
Tim Graham 2017-06-06 11:33:09 -04:00
parent fc13a697b4
commit 41e02ab368
2 changed files with 13 additions and 7 deletions

View File

@ -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

View File

@ -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
* 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
* 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