Mongoexport返回的记录超过指定限制

时间:2019-11-12 01:37:22

标签: mongodb powershell

我正在将mongoexport参数设置为100000的PowerShell脚本中使用/limit。执行后,结果表明它导出的数量超过100000。

& 'C:\Program Files\MongoDB\Server\4.2\bin\mongoexport.exe' /uri:$DbUri /collection:$DbCollection /fields:id,detail.quantity,location_code,sku /type:csv /out:$exportFileName /limit:100000 /ssl --noHeaderLine

导出的记录数为100101。我想知道为什么是这种情况,并且有办法防止这种情况吗?

2019-11-11T21:32:18.720+0000    [########################]  inv_supp  100101/100000  (100.1%)
2019-11-11T21:32:18.720+0000    exported 100101 records

0 个答案:

没有答案
相关问题