parse-community / parse-community/parse-server
ability to use allowDiskUse on mongo
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 21.4k
- Forks
- 4.8k
- Avg merge
- 7h 45m
- Merged PRs (30d)
- 11
Description
New Feature / Enhancement Checklist
- I am not disclosing a vulnerability.
- I am not just asking a question.
- I have searched through existing issues.
Current Limitation
currently it's not possible to set allowDiskUse as option to queries
Feature / Enhancement Description
according to this comment, starting with mongo v5.12.8 it would be possible to pass allowDiskUse through setOptions
https://github.com/Automattic/mongoose/issues/10177#issuecomment-836868781
await Test.find().sort({ name: 1 }).setOptions({ allowDiskUse: true }).exec();
Example Use Case
query.find({ allowDiskUse: true }).then(function(results) {
// Request succeeded
}, function(error) {
// Request failed
});
Alternatives / Workarounds
N/A
3rd Party References
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the query.find({ allowDiskUse: true }) entry point and trace how query options reach the MongoDB adapter; the issue references Mongoose setOptions as the intended model. Determine how to pass allowDiskUse through the query API and verify that the example succeeds against MongoDB, including an appropriate regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, mongodb
- Domain
- api, backend, database
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100