When using multi: true, the create method is slow. See: https://discord.com/channels/509848480760725514/1049386346030047293
Solutions
- This line:
|
return Promise.all(Object.values(result.insertedIds).map(_id => this.Model.findOne({ _id }, options))); |
should probably use { _id: { $in: [result.insertedIds] } }
- Implement some
$returning: false or $limit: 0 to disable Feathers from returning results.