#36475: Optimize F-expression slice to MySQL column-prefix index
-------------------------------------+-------------------------------------
     Reporter:  JaeHyuckSa           |                    Owner:  (none)
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  5.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  needsinfo
     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 Adam Johnson):

 The idea is that MySQL could have a custom `_create_index_sql()` that
 replaces relevant `Substr` instances with another expression that then
 outputs the `col_name(length)` syntax.

 Perhaps this is too complicated, and it's better to make a separate
 `Prefix` expression class, though, in Django-MySQL.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36475#comment:4>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/010701979d77c973-daa9692d-5ea1-4349-8fe4-aba21b9853d3-000000%40eu-central-1.amazonses.com.

Reply via email to