-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(web_api): index more created_at based queries (#794)
technically we only need to index: - github_event.created_at - user_pull_request_activity_progress.created_at - pul_request_activity_progress.created_at but it was easier to update the parent class instead of the specific ones.
- Loading branch information
Showing
2 changed files
with
54 additions
and
1 deletion.
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,53 @@ | ||
# Generated by Django 3.0.3 on 2022-03-22 00:36 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("web_api", "0025_auto_20200902_0052"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="account", | ||
name="created_at", | ||
field=models.DateTimeField(auto_now_add=True, db_index=True), | ||
), | ||
migrations.AlterField( | ||
model_name="accountmembership", | ||
name="created_at", | ||
field=models.DateTimeField(auto_now_add=True, db_index=True), | ||
), | ||
migrations.AlterField( | ||
model_name="githubevent", | ||
name="created_at", | ||
field=models.DateTimeField(auto_now_add=True, db_index=True), | ||
), | ||
migrations.AlterField( | ||
model_name="pullrequestactivity", | ||
name="created_at", | ||
field=models.DateTimeField(auto_now_add=True, db_index=True), | ||
), | ||
migrations.AlterField( | ||
model_name="pullrequestactivityprogress", | ||
name="created_at", | ||
field=models.DateTimeField(auto_now_add=True, db_index=True), | ||
), | ||
migrations.AlterField( | ||
model_name="user", | ||
name="created_at", | ||
field=models.DateTimeField(auto_now_add=True, db_index=True), | ||
), | ||
migrations.AlterField( | ||
model_name="userpullrequestactivity", | ||
name="created_at", | ||
field=models.DateTimeField(auto_now_add=True, db_index=True), | ||
), | ||
migrations.AlterField( | ||
model_name="userpullrequestactivityprogress", | ||
name="created_at", | ||
field=models.DateTimeField(auto_now_add=True, db_index=True), | ||
), | ||
] |
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