minquery icon indicating copy to clipboard operation
minquery copied to clipboard

allowDiskUse option

Open runique opened this issue 3 years ago • 1 comments

dear icza: if select a large table, error may be occured like this:

q.err:Executor error during find command :: caused by :: Sort excee ded memory limit of 104857600 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUsello wDiskUse:true to opt in.

after deeply studying, i add the following code after minquery.go:166: {Name: "allowDiskUse", Value: true}, // added by runique, 20210310 then everything is ok!

so i'd like to suggest you append the line as default option. thank you very much!

runique avatar Mar 10 '21 07:03 runique

The mgo library is not supported anymore. I suggest to switch to the official mongo driver asap: https://github.com/mongodb/mongo-go-driver

icza avatar Mar 10 '21 07:03 icza