public void BulkInsertDocuments(string tenantId, IEnumerable <object> documents, BulkInsertMode mode = BulkInsertMode.InsertsOnly, int batchSize = 1000) { var bulkInsertion = new BulkInsertion(Tenancy[tenantId], Options); bulkInsertion.BulkInsertDocuments(documents, mode, batchSize); }
public void BulkInsertDocuments(IEnumerable <object> documents, BulkInsertMode mode = BulkInsertMode.InsertsOnly, int batchSize = 1000) { var bulkInsertion = new BulkInsertion(Tenancy.Default, Options, _writerPool); bulkInsertion.BulkInsertDocuments(documents, mode, batchSize); }