Exemple #1
0
        public void Import(ElasticClient client)
        {
            for (int i = 0; i < writeConfig.NumberOfCardBulk; i++)
            {
                var cards = cardGenerator.GetCards(writeConfig.CardBulkSize);
                InsertCards(cards, client);
            }

            for (int i = 0; i < writeConfig.NumberOfTransactionBulk; i++)
            {
                var transactions = transactionGenerator.GetTransactions(writeConfig.TransactionBulkSize);
                InsertTransactions(transactions, client);
            }
        }