[Django] #35249: DISABLE_SERVER_SIDE_CURSORS is not documented as a connection setting

14 views
Skip to first unread message

Django

unread,
Feb 24, 2024, 6:33:28 AM2/24/24
to django-...@googlegroups.com
#35249: DISABLE_SERVER_SIDE_CURSORS is not documented as a connection setting
------------------------------------------+------------------------
Reporter: Johannes Maron | Owner: nobody
Type: Bug | Status: new
Component: Documentation | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+------------------------
`DISABLE_SERVER_SIDE_CURSORS` is documented as a Django setting when it is
in fact a connection setting.

See also:

https://docs.djangoproject.com/en/5.0/ref/settings/#disable-server-side-
cursors
https://github.com/django/django/blob/6e1ece7ed522c904a674966fa985159b7bbf1545/django/db/models/query.py#L540-L542

The correct usage is:


{{{
# settings.py

DATABASES = {
"default": {
# …
"DISABLE_SERVER_SIDE_CURSORS": True,
},
}
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35249>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 25, 2024, 9:13:11 AM2/25/24
to django-...@googlegroups.com
#35249: DISABLE_SERVER_SIDE_CURSORS is not documented as a connection setting
--------------------------------+--------------------------------------
Reporter: Johannes Maron | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: dev
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* resolution: => invalid
* status: new => closed

Comment:

`DISABLE_SERVER_SIDE_CURSORS` is documented in the `DATABASES` setting,
just like `ENGINE`, `NAME, etc. As far as I'm aware, it's in the right
place.
--
Ticket URL: <https://code.djangoproject.com/ticket/35249#comment:1>

Django

unread,
Feb 25, 2024, 10:45:36 AM2/25/24
to django-...@googlegroups.com
#35249: DISABLE_SERVER_SIDE_CURSORS is not documented as a connection setting
--------------------------------+--------------------------------------
Reporter: Johannes Maron | Owner: nobody
Type: Bug | Status: closed
Component: Documentation | Version: dev
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Comment (by Johannes Maron):

Oh, how awkward… 😳 I missed that. Eventually, the DB settings might
deserve their own page. Until then I will read better 🤓
--
Ticket URL: <https://code.djangoproject.com/ticket/35249#comment:2>
Reply all
Reply to author
Forward
0 new messages