...
To retrieve the entire published course structure, the modulestore queries a single document from active_versions
and another single document from structures
(by _id).
Other Relevant Pages/Slides/Docs/Code
How to Recover from a Broken Split Course
To Find the Size of All Active Structures
Code Block | ||||
---|---|---|---|---|
| ||||
db.modulestore.active_versions.find().forEach(
function(obj) {
var published_id = obj["versions"]["published-branch"];
struct_obj = db.modulestore.structures.findOne(published_id);
var curr = Object.bsonsize(struct_obj);
print(curr + " :: " + obj["org"] + "/" + obj["course"] + "/" + obj["run"]);
}
) |