Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }