Changes between Version 1 and Version 2 of Ticket #24082


Ignore:
Timestamp:
Jan 5, 2015, 1:47:56 PM (10 years ago)
Author:
djbug
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24082 – Description

    v1 v2  
    3333Please correct me if I'm wrong. My conclusion is that database enforce unique constraint by way of an index. Adding another index is a waste. There's some mention of this fact in an old bug report ([https://code.djangoproject.com/ticket/3030#comment:3 comment 3] & [https://code.djangoproject.com/ticket/3030#comment:6 comment 6] ) but it looks like the issue got dropped.
    3434
    35 However, if the justification to add a second index is [https://code.djangoproject.com/ticket/12234 Bug Report 12234] then it might be more efficient to interpret a unique constraint as
     35However, if the justification to add a second index is [https://code.djangoproject.com/ticket/12234 Bug Report 12234] then it might be more efficient to interpret a `unique=True` as
    3636
    3737
Back to Top