public void BulkInsertDocuments(string tenantId, IEnumerable <object> documents, BulkInsertMode mode = BulkInsertMode.InsertsOnly, int batchSize = 1000) { var bulkInsertion = new BulkInsertion(Tenancy.GetTenant(tenantId), Options); bulkInsertion.BulkInsertDocuments(documents, mode, batchSize); }
public Task BulkInsertDocumentsAsync(string tenantId, IEnumerable <object> documents, BulkInsertMode mode = BulkInsertMode.InsertsOnly, int batchSize = 1000, CancellationToken cancellation = default) { var bulkInsertion = new BulkInsertion(Tenancy.GetTenant(tenantId), Options); return(bulkInsertion.BulkInsertDocumentsAsync(documents, mode, batchSize, cancellation)); }
public void BulkInsert <T>(string tenantId, IReadOnlyCollection <T> documents, BulkInsertMode mode = BulkInsertMode.InsertsOnly, int batchSize = 1000) { var bulkInsertion = new BulkInsertion(Tenancy.GetTenant(tenantId), Options); bulkInsertion.BulkInsert(documents, mode, batchSize); }
public Task BulkInsertAsync <T>(string tenantId, IReadOnlyCollection <T> documents, BulkInsertMode mode = BulkInsertMode.InsertsOnly, int batchSize = 1000, CancellationToken cancellation = default) { var bulkInsertion = new BulkInsertion(Tenancy.GetTenant(tenantId), Options); return(bulkInsertion.BulkInsertAsync(documents, mode, batchSize, cancellation)); }