This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It should potentially improve performance of some queries a bit. No benchmarking is done, just those fields are used in various queries. closes #6742 https://pulp.plan.io/issues/6742
- Loading branch information
1 parent
59e4f38
commit e689a45
Showing
4 changed files
with
55 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 @@ | ||
Added some indices used in various queries. |
46 changes: 46 additions & 0 deletions
46
pulp_2to3_migration/app/migrations/0028_create_missing_indices.py
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,46 @@ | ||
# Generated by Django 2.2.19 on 2021-03-30 17:33 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('pulp_2to3_migration', '0027_pulp2repocontent_created_index'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='pulp2content', | ||
index=models.Index(fields=['pulp2_last_updated'], name='pulp_2to3_m_pulp2_l_c8b0d6_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='pulp2distributor', | ||
index=models.Index(fields=['pulp2_last_updated'], name='pulp_2to3_m_pulp2_l_2c5996_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='pulp2distributor', | ||
index=models.Index(fields=['pulp2_repo_id'], name='pulp_2to3_m_pulp2_r_77bd32_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='pulp2importer', | ||
index=models.Index(fields=['pulp2_last_updated'], name='pulp_2to3_m_pulp2_l_2bbfde_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='pulp2repository', | ||
index=models.Index(fields=['pulp2_last_unit_added'], name='pulp_2to3_m_pulp2_l_270629_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='pulp2repository', | ||
index=models.Index(fields=['pulp2_last_unit_removed'], name='pulp_2to3_m_pulp2_l_2de33d_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='pulp2repository', | ||
index=models.Index(fields=['pulp2_repo_id'], name='pulp_2to3_m_pulp2_r_68b419_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='pulp2importer', | ||
index=models.Index(fields=['pulp2_repo_id'], name='pulp_2to3_m_pulp2_r_46adaf_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