Created
April 25, 2017 09:18
-
-
Save iCoolchar/60bf878b66e85cda5be0d975c61402f3 to your computer and use it in GitHub Desktop.
bulk insert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for _, module := range moduleList { | |
mongodb.ExecBulk(mongodb.GetMgoSession(), DiscoveryOrderTable, func(bulk *mgo.Bulk) { | |
bulk.Insert(module) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment