public async Task InitialFilling() { Glossary.Reset(); await AllDelete(); do { //Console.WriteLine(Glossary.TitleCurrent); } while (FillItem(_rand.Next(1, 20), 100, null)); Console.WriteLine(_items.Count); Console.WriteLine(_globalItems.Count); var splittedItems = SplitList(_items, 1000); foreach (var list in splittedItems) { await _repo.BulkInsert(list.ToArray()); } var splittedGlobalItems = SplitList(_globalItems, 1000); foreach (var list in splittedGlobalItems) { await _globalRepository.BulkInsert(list.ToArray()); } }