Below I'm cataloging each and every read/write access to the courseware StudentModule (CSM) Django model. It's essential to know of each access due to our pending work to encapsulate all CSM access behind an interface. The interface backend will support both the present Django ORM and a Cassandra backend to better handle student traffic at scale. Dave Ormsbee has authored this page to capture existing CSM query patterns - the catalog below looks at all code in edx-platform and catalogs access in each file therein.
lms/djangoapps/courseware/model_data.py
Reads
Call Chain | Query | Maps To Query |
---|---|---|
| return self._chunked_query( |
Writes
Call Chain | Query | Maps To Query |
---|---|---|
FieldDataCache.find_or_create() |
| |
DjangoKeyValueStore.set_many() | StudentModule.save() | |
|
|