Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To Find the Size of All Active Structures

Issue this command at the MongoDB command line of the replica DB:

Code Block
languagejs
themeFadeToGrey
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"]);
    }
)

...