[Django] #25025: Django migration (>=1.7) like index

2 views
Skip to first unread message

Django

unread,
Jun 26, 2015, 5:01:54 AM6/26/15
to django-...@googlegroups.com
#25025: Django migration (>=1.7) like index
-------------------------------+--------------------
Reporter: TZanke | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Django migration generates 'like' indexes for database text fields.

For example:

"auth_user_username_51b3b110094b8aae_like" btree (username
varchar_pattern_ops)

I would like to explicitly set indexes in database.

Is it possible to disable like index generation with django migrations?

--
Ticket URL: <https://code.djangoproject.com/ticket/25025>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 26, 2015, 7:05:12 AM6/26/15
to django-...@googlegroups.com
#25025: Django migration (>=1.7) like index
-------------------------------+--------------------------------------
Reporter: TZanke | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.7
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
-------------------------------+--------------------------------------
Changes (by claudep):

* status: new => closed
* needs_docs: => 0
* resolution: => needsinfo
* needs_tests: => 0
* needs_better_patch: => 0


Comment:

If you don't want an "automatic" index, why simply not specify db_index on
the field? If I missed the point, please develop your use case a bit more.

--
Ticket URL: <https://code.djangoproject.com/ticket/25025#comment:1>

Django

unread,
Jun 26, 2015, 8:03:32 AM6/26/15
to django-...@googlegroups.com
#25025: Django migration (>=1.7) like index
-------------------------------+--------------------------------------
Reporter: TZanke | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.7
Severity: Normal | Resolution: duplicate
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 timgraham):

* resolution: needsinfo => duplicate


Comment:

Duplicate of #24507 and #24088. See also
[https://groups.google.com/d/topic/django-
developers/H2QFcQYsbo8/discussion discussion on django-developers].

--
Ticket URL: <https://code.djangoproject.com/ticket/25025#comment:2>

Reply all
Reply to author
Forward
0 new messages