Beispiel #1
0
 private static void TesteBulkMongo(List <FootballTeam> ListaBulkInsert, FootballTeamManagerMongoDb mongoRepo, Stopwatch swmongo)
 {
     swmongo.Start();
     mongoRepo.SaveTeams(ListaBulkInsert);
     swmongo.Stop();
     Console.WriteLine($"MongoDb bulkinsert 10000 itens -  {swmongo.ElapsedMilliseconds} ms | {swmongo.ElapsedTicks} ticks");
 }
Beispiel #2
0
        private static void TesteBulk(List <FootballTeam> ListaBulkInsert, FootballTeamManagerMongoDb mongoRepo, FootballTeamManagerRavenDb ravenRepo, Stopwatch swmongo, Stopwatch swraven)
        {
            Console.WriteLine("Testes bulkinsert 10000 items");

            TesteBulkMongo(ListaBulkInsert, mongoRepo, swmongo);
            TesteBulkRaven(ListaBulkInsert, ravenRepo, swraven);
        }
Beispiel #3
0
        private static void TesteInserts(List <FootballTeam> ListaInsertsUmAUm, FootballTeamManagerMongoDb mongoRepo, FootballTeamManagerRavenDb ravenRepo, Stopwatch swmongo, Stopwatch swraven)
        {
            Console.WriteLine("Testes 1000 inserts consecultivos");



            TesteInsertMongo(ListaInsertsUmAUm, mongoRepo, swmongo);
            TesteInsertRaven(ListaInsertsUmAUm, ravenRepo, swraven);
        }