#1 2018-06-22 21:29:23

zed
Member
From: Belarus
Registered: 2015-02-26
Posts: 105

MongoDB 3.6 require "cursor" in aggregate requests

Calculation EngineLastID (when EngineAddCompute = eacMaxIDEachTime) stopped work in mORMot with MongoDB 3.6 because now mongo require cursor in aggregate requests:

Changed in version 3.6: MongoDB 3.6 removes the use of aggregate command without the cursor option unless the command includes the explain option. Unless you include the explain option, you must specify the cursor option.

To indicate a cursor with the default batch size, specify cursor: {}.

To indicate a cursor with a non-default batch size, use cursor: { batchSize: <num> }.

https://docs.mongodb.com/manual/referen … aggregate/

My pull request with fix: https://github.com/synopse/mORMot/pull/120

Last edited by zed (2018-06-22 21:56:31)

Offline

#2 2018-06-22 22:26:06

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,231
Website

Re: MongoDB 3.6 require "cursor" in aggregate requests

Has been merged by https://synopse.info/fossil/info/5835f62049eefcf9

Thanks a lot for the input!

Offline

Board footer

Powered by FluxBB