minquery
minquery copied to clipboard
allowDiskUse option
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!
The mgo
library is not supported anymore. I suggest to switch to the official mongo driver asap: https://github.com/mongodb/mongo-go-driver