-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add speed up indexes This dramatically improves the normal queries we do on these tables. * Make it a list like other indexes
- Loading branch information
1 parent
b7835d4
commit 40a05c1
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
readthedocs/integrations/migrations/0014_add_index_speedup.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,21 @@ | ||
# Generated by Django 4.2.16 on 2024-09-23 20:22 | ||
|
||
from django.db import migrations, models | ||
from django_safemigrate import Safe | ||
|
||
|
||
class Migration(migrations.Migration): | ||
safe = Safe.always | ||
dependencies = [ | ||
("integrations", "0013_set_timestamp_fields_as_no_null"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name="httpexchange", | ||
index=models.Index( | ||
fields=["content_type", "object_id", "date"], | ||
name="integration_content_5d4e98_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 4.2.16 on 2024-09-23 20:22 | ||
|
||
from django.db import migrations, models | ||
from django_safemigrate import Safe | ||
|
||
|
||
class Migration(migrations.Migration): | ||
safe = Safe.always | ||
dependencies = [ | ||
("search", "0005_alter_searchquery_id"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name="searchquery", | ||
index=models.Index( | ||
fields=["modified", "project", "version"], | ||
name="search_sear_modifie_3ac4ab_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