#30256: autocomplete_fields cause one or two extra queries for each field wth
foreign key or many to many relation
--------------------------------------+------------------------------------
Reporter: George Tantiras | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: contrib.admin | Version: master
Severity: Normal | Resolution:
Keywords: autocomplete | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by Simon Charette):
The server side cursor (`DECLARE CURSOR`) get created when using
`iterator` on PostgreSQL; the SQLite backend doesn't support this feature.
The only internal use of `.iterator()` I can think of is in
`ModelChoiceIterator.choice`
([https://github.com/django/django/blob/2847d2c760438195c4c71ea9d3fded1ce116ea4e/django/forms/models.py#L1128-L1141
link]) if that can be of any help.
--
Ticket URL: <https://code.djangoproject.com/ticket/30256#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.bb09140fb79d63bdbfcb34c68ab1adb7%40djangoproject.com.