【发布时间】:2019-01-28 08:09:14
【问题描述】:
根据 MongoDB C# 驱动程序中的 documentation 和代码 IMongoCollection.InsertMany 方法,不返回任何内容。这很奇怪,因为例如DeleteMany 返回 DeleteResult 信息。甚至 InsertMany 作为 Shell 方法也会返回带有 Acknowledged 等的信息(参见 here)。
这是什么原因?还有最重要的问题:如何快速(不牺牲性能)确认InsertMany 已正确完成(Acknowledged == true)?
【问题讨论】:
标签: c# mongodb mongodb-.net-driver