for (var i = 0; i < 100; i++){var doc = {}; doc["ID"] = i; doc["Msg"] = "value is "+ i; db.mycol3.insert(doc);}