Default maximum size for a bulk (1MB).
Default maximum documents number for a bulk (100).
Returns an iteratee that will consume chunks (chunk == document) and insert them into the given collection.
Returns an iteratee that will consume chunks (chunk == document) and insert them into the given collection.
This iteratee eventually gives the number of documents that have been inserted into the given collection.
The collection where the documents will be stored.
A function that returns true if the staging bulk can be sent to be written. This function has two parameters: numberOfDocuments and numberOfBytes.
Returns an iteratee that will consume chunks (chunk == document) and insert them into the given collection.
Returns an iteratee that will consume chunks (chunk == document) and insert them into the given collection.
This iteratee eventually gives the number of documents that have been inserted into the given collection.
The collection where the documents will be stored.
The number of documents per bulk.
The maximum size for a bulk, in bytes.
Bulk insertion.