来自DataStore类的javadoc。在旧版本上可能不可用。即使这样,我也认为是在内部迭代并一次保存一个,但它可能会得到优化,所以使用它比自己迭代要好。
<T> Iterable<Key<T>>
save(Iterable<T> entities)
Saves the entities (Objects) and updates the @Id field
<T> Iterable<Key<T>>
save(Iterable<T> entities, com.mongodb.WriteConcern wc)
Saves the entities (Objects) and updates the @Id field, with the WriteConcern
<T> Iterable<Key<T>>
save(T... entities)
Saves the entities (Objects) and updates the @Id field
http://morphia.googlecode.com/svn/site/morphia/apidocs/com/google/code/morphia/Datastore.html#save(java.lang.Iterable
)