Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added matching indexes to a number of models with ordering by multipl…
…e keys. - Legacy-Id: 18664
- Loading branch information
Showing
20 changed files
with
226 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.2.17 on 2020-11-09 04:29 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('doc', '0037_clean_up_missing_docaliases'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='docevent', | ||
index=models.Index(fields=['-time', '-id'], name='doc_doceven_time_1a258f_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 2.2.17 on 2020-11-09 04:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('doc', '0038_auto_20201109_0429'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='dochistoryauthor', | ||
index=models.Index(fields=['document', 'order'], name='doc_dochist_documen_7e2441_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='documentauthor', | ||
index=models.Index(fields=['document', 'order'], name='doc_documen_documen_7fabe2_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.2.17 on 2020-11-09 04:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('group', '0037_initial_yc_roles'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='groupevent', | ||
index=models.Index(fields=['-time', '-id'], name='group_group_time_ee7c7c_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,3 +88,6 @@ def __str__(self): | |
|
||
class Meta: | ||
ordering = ['-date'] | ||
indexes = [ | ||
models.Index(fields=['-date',]), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 2.2.17 on 2020-11-09 04:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('ipr', '0007_create_ipr_doc_events'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='iprdisclosurebase', | ||
index=models.Index(fields=['-time', '-id'], name='ipr_iprdisc_time_846a78_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='iprevent', | ||
index=models.Index(fields=['-time', '-id'], name='ipr_ipreven_time_9630c4_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.2.17 on 2020-11-09 04:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('liaisons', '0006_document_primary_key_cleanup'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='liaisonstatementevent', | ||
index=models.Index(fields=['-time', '-id'], name='liaisons_li_time_3e1646_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 2.2.17 on 2020-11-09 04:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('meeting', '0038_auto_20201005_1123'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='meeting', | ||
index=models.Index(fields=['-date', '-id'], name='meeting_mee_date_40ca21_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='timeslot', | ||
index=models.Index(fields=['-time', '-id'], name='meeting_tim_time_b802cb_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Generated by Django 2.2.17 on 2020-11-09 04:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('message', '0010_fix_content_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='message', | ||
index=models.Index(fields=['time'], name='message_mes_time_20eabf_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='sendqueue', | ||
index=models.Index(fields=['time'], name='message_sen_time_07ab31_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.2.17 on 2020-11-09 04:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('nomcom', '0008_auto_20201008_0506'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='feedback', | ||
index=models.Index(fields=['time'], name='nomcom_feed_time_35cf38_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.2.17 on 2020-11-09 04:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('person', '0017_auto_20201028_0902'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='personevent', | ||
index=models.Index(fields=['-time', '-id'], name='person_pers_time_8dfbc5_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 2.2.17 on 2020-11-09 04:39 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('submit', '0006_submission_xml_version'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='submissionevent', | ||
index=models.Index(fields=['-time', '-id'], name='submit_subm_time_fcd790_idx'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters