Today I had a list with 40,000 registers that I needed to save in my MSSQL DB. When I tried to save it, I checked the console screen and realized that it saves item by item, and it consumes a lot of time, even when I try to do this to insert the entire list using the command below.
List<Andamento> andamentoList = fillAndamentoList(parameters); _repository.Save(andamentoList); _repository.Commit();
Is it possible to configure NHibernate and modify it to actually insert the entire list with only one database interaction?
Many thanks,
c # sql-server nhibernate
Felipe santiago
source share