コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }