#23138: please add min_length to django.db.models.fields.Field
-------------------------------------+-------------------------------------
Reporter: anonymous | Owner: nobody
Type: | Status: new
Cleanup/optimization | Version: 1.6
Component: Database layer | Resolution:
(models, ORM) | Triage Stage:
Severity: Normal | Unreviewed
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by dnozay):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
edge case: `syncdb` command can inspect the fields and see that
`min_length`== `max_length` and mysql backend could use `CHAR(N)` instead
of `VARCHAR(N)` which results in less bytes being consumed, which could be
important savings with lots of records.
see https://github.com/django/django/pull/2921.
--
Ticket URL: <https://code.djangoproject.com/ticket/23138#comment:1>
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/067.a91810c19ea769b41c800cf4380fb23e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.