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