You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
batchSize can also be set in the data source configuration
var dataSource = new DataSource({ connector: require('loopback-connector-mongodb'), host: 'localhost', port: 27017, database: 'mydatabase', username: 'username', password: 'password', batchSize: 10000 // Specify your desired batch size here });
In case you want to set on a specific query then this should also work. This allows you to override the default batch size configured in the data source for this specific query.
Model.find({ where: { /* Your filter conditions */ }, batchSize: 10000 // Specify your desired batch size here })
How to use batchSize property in Loopback Mongodb connector
is it like this ?
collection.find({},{"batchSize":10000}
The text was updated successfully, but these errors were encountered: