-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Optimize the querying of course block dates when querying dates…
… for use in a course outline, which don't need block dates below the subsection level of a course. Also, rework the block date caching to use TieredCache, as well as using the current published version of a course in the cache key to remove the need for cache invalidation. TNL-8061
- Loading branch information
Julia Eskew
committed
Aug 31, 2021
1 parent
3ef2751
commit dc00e3d
Showing
8 changed files
with
212 additions
and
92 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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
""" | ||
Your project description goes here. | ||
Central source of course block dates for the LMS. | ||
""" | ||
|
||
__version__ = '2.1.0' | ||
__version__ = '2.2.0' | ||
|
||
default_app_config = 'edx_when.apps.EdxWhenConfig' # pylint: disable=invalid-name |
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,41 @@ | ||
# Generated by Django 3.2.6 on 2021-08-31 15:11 | ||
|
||
import opaque_keys.edx.django.models | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('edx_when', '0007_meta_tweaks'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='contentdate', | ||
name='block_type', | ||
field=models.CharField(max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='contentdate', | ||
name='course_id', | ||
field=opaque_keys.edx.django.models.CourseKeyField(max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name='contentdate', | ||
name='location', | ||
field=opaque_keys.edx.django.models.UsageKeyField(default=None, max_length=255, null=True), | ||
), | ||
migrations.AddIndex( | ||
model_name='contentdate', | ||
index=models.Index(fields=['course_id', 'block_type'], name='edx_when_course_block_type_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='contentdate', | ||
index=models.Index(fields=['course_id'], name='edx_when_course_id_idx'), | ||
), | ||
migrations.AddIndex( | ||
model_name='contentdate', | ||
index=models.Index(fields=['location'], name='edx_when_location_idx'), | ||
), | ||
] |
Oops, something went wrong.