mirror of
https://github.com/django/django.git
synced 2025-08-19 02:01:29 +00:00
Refs #16614 -- Made QuerySet.iterator() use server-side cursors on PostgreSQL.
Thanks to Josh Smeaton for the idea of implementing server-side cursors in PostgreSQL from the iterator method, and Anssi Kääriäinen and Kevin Turner for their previous work. Also Simon Charette and Tim Graham for review.
This commit is contained in:
parent
53bffe8d03
commit
f3b7c05936
13 changed files with 165 additions and 31 deletions
|
@ -273,6 +273,11 @@ Database backends
|
|||
* Added the :setting:`TEST['TEMPLATE'] <TEST_TEMPLATE>` setting to let
|
||||
PostgreSQL users specify a template for creating the test database.
|
||||
|
||||
* :meth:`.QuerySet.iterator()` now uses :ref:`server-side cursors
|
||||
<psycopg2:server-side-cursors>` on PostgreSQL. This feature transfers some of
|
||||
the worker memory load (used to hold query results) to the database and might
|
||||
increase database memory usage.
|
||||
|
||||
Email
|
||||
~~~~~
|
||||
|
||||
|
@ -527,6 +532,10 @@ Database backend API
|
|||
* Renamed the ``ignores_quoted_identifier_case`` feature to
|
||||
``ignores_table_name_case`` to more accurately reflect how it is used.
|
||||
|
||||
* The ``name`` keyword argument is added to the
|
||||
``DatabaseWrapper.create_cursor(self, name=None)`` method to allow usage of
|
||||
server-side cursors on backends that support it.
|
||||
|
||||
Dropped support for PostgreSQL 9.2 and PostGIS 2.0
|
||||
--------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue