#24638: New feature: support adding an SQL comment in queries
-------------------------------------+-------------------------------------
Reporter: adamchainz | Owner: nobody
Type: New feature | Status: new
Component: Database layer | Version: 1.8
(models, ORM) |
Severity: Normal | Resolution:
Keywords: queryset, query, | Triage Stage: Accepted
comment, optimizer hint |
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by akaariai):
It might be a bit ugly if we have to support multiple places for the
comment. What about MSSQL, DB2 and other non-core backends? I'm not sure
what is the best way to alter the generated SQL if we need support for
injecting hints in arbitrary places.
Also, are we ok with support for read queries only, or should we have it
for update/delete/insert queries, too? The delete queries might be
especially hard for cascades. Maybe we should aim for "user generated
select queries only" for the first implementation?
--
Ticket URL: <https://code.djangoproject.com/ticket/24638#comment:6>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.9c71a4a9d0f1a4c480f0782bdb5f3084%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.