-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add db index to License.status field
This field is used by the license REST APIs for sorting and filtering, as well as all endpoints which contain license counts by status, which makes it a good candidate for being indexed. ENT-8271
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
license_manager/apps/subscriptions/migrations/0066_license_subscription_plan_status_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,17 @@ | ||
# Generated by Django 4.2.9 on 2024-01-29 20:24 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('subscriptions', '0065_subscriptionplan_desired_num_licenses_not_editable'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddIndex( | ||
model_name='license', | ||
index=models.Index(fields=['subscription_plan', 'status'], name='subscription_plan_status_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