-
-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3348 from Minnozz/more-indexes
Define more indexes for slow queries
- Loading branch information
Showing
7 changed files
with
97 additions
and
9 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
19 changes: 19 additions & 0 deletions
19
bookwyrm/migrations/0200_status_bookwyrm_st_thread__cf064f_idx.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,19 @@ | ||
# Generated by Django 3.2.25 on 2024-04-03 19:05 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("bookwyrm", "0199_status_bookwyrm_st_remote__06aeba_idx"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name="status", | ||
index=models.Index( | ||
fields=["thread_id"], name="bookwyrm_st_thread__cf064f_idx" | ||
), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
bookwyrm/migrations/0201_keypair_bookwyrm_ke_remote__472927_idx.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,19 @@ | ||
# Generated by Django 3.2.25 on 2024-04-03 19:10 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("bookwyrm", "0200_status_bookwyrm_st_thread__cf064f_idx"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name="keypair", | ||
index=models.Index( | ||
fields=["remote_id"], name="bookwyrm_ke_remote__472927_idx" | ||
), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
bookwyrm/migrations/0202_user_bookwyrm_us_usernam_b2546d_idx.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,19 @@ | ||
# Generated by Django 3.2.25 on 2024-04-03 19:14 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("bookwyrm", "0201_keypair_bookwyrm_ke_remote__472927_idx"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name="user", | ||
index=models.Index( | ||
fields=["username"], name="bookwyrm_us_usernam_b2546d_idx" | ||
), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
bookwyrm/migrations/0203_user_bookwyrm_us_is_acti_972dc4_idx.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,19 @@ | ||
# Generated by Django 3.2.25 on 2024-04-03 19:22 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("bookwyrm", "0202_user_bookwyrm_us_usernam_b2546d_idx"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name="user", | ||
index=models.Index( | ||
fields=["is_active", "local"], name="bookwyrm_us_is_acti_972dc4_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