Skip to content

Commit ac4eb08

Browse files
committed
Add an index on rfc_number. The plan in adamlaska#98 is to make this a unique
index, but there is a performance boost to having an index before the database modifications to allow it to be unique can be peformed. - Legacy-Id: 917
1 parent 2671982 commit ac4eb08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/idtracker/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class InternetDraft(models.Model):
140140
b_discussion_date = models.DateField(null=True, blank=True)
141141
b_approve_date = models.DateField(null=True, blank=True)
142142
wgreturn_date = models.DateField(null=True, blank=True)
143-
rfc_number = models.IntegerField(null=True, blank=True)
143+
rfc_number = models.IntegerField(null=True, blank=True, db_index=True)
144144
comments = models.TextField(blank=True)
145145
last_modified_date = models.DateField()
146146
replaced_by = models.ForeignKey('self', db_column='replaced_by', raw_id_admin=True, blank=True, null=True, related_name='replaces_set')

0 commit comments

Comments
 (0)