#16220: Add introspection for multicolumn indexes
-------------------------------------+-------------------------------------
     Reporter:  jgelens              |                    Owner:  jgelens
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Database layer       |                  Version:  1.3
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  dceu2011 inspectdb   |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by akki):

 The `get_constraints` method of the introspection currently returns
 something similar to this for all databases.

 {{{
 #!python

 {
     u'introspection_article_headline_pub_date_c749bad3_idx':{
         'index':True,
         'primary_key':False,
         'orders':['ASC', 'ASC'],
         'foreign_key':False,
         'unique':False,
         'check':False,
         'columns':[u'headline', u'pub_date']
     },
     '__primary__':{
         'index':False,
         'primary_key':True,
         'foreign_key':False,
         'unique':False,
         'check':False,
         'columns':[u'id']
     },
     u'introspection_article_reporter_id_c7562f75':{
         'index':True,
         'primary_key':False,
         'orders':['ASC'],
         'foreign_key':False,
         'unique':False,
         'check':False,
         'columns':[u'reporter_id']
     },
 }

 }}}

 If I understand correctly, that means this ticket got resolved somewhere
 down the line.

 ---

 I also found
 
[https://github.com/django/django/blob/9f27735612fc775380d7801c68af0ea1c97cf5a3/tests/introspection/tests.py#L180
 an introspection test] with the following docstring
 {{{
 #!python
 """
 Test that multicolumn indexes are not included in the introspection
 results.
 """
 }}}
 which I found something contradicting to this ticket.

--
Ticket URL: <https://code.djangoproject.com/ticket/16220#comment:19>
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/065.565e0195ca60ed62133322407b450045%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to