...
To Find the Size of All Active Structures
Issue this command at the MongoDB command line of the replica DB:
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"]); } ) |
...