-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with memory limit : Sort exceeded memory limit of 104857600 bytes, #2110
Comments
Increase your PHP memory limit. I can't really reproduce this. |
@divine I already did, but the issue is related to mongodb. Aggregation pipeline stages in mongodb have maximum memory use limit. To handle large datasets, we need to set allowDiskUse option to true to enable writing data to temporary files What MongoDb is saying here is that aggregate like sort has a maximum of RAM configured, but when exceeded instead of abort the operation it will continue using disk file storage instead of RAM, if the allowDiskUse has been set to true.
But how we can change the value to true in Laravel ? |
Can you please dump that query? Does it contain |
which version of laravel-mongodb are using? |
you need create index before sort. example db.user.createIndex({ country: 1 }); |
Closing as not related. |
Hi I have issue when loading data from mongodb using Sort option
I got this message "message: "multiplanner encountered a failure while selecting best plan :: caused by :: Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in."
"
I know that the memory limit excited and I have to set allowDiskUse to True, I tried this :
But it's not working I got the same error.
Is there any solution to resolve this issue.
The text was updated successfully, but these errors were encountered: