Skip to content

Instantly share code, notes, and snippets.

View offpepe's full-sized avatar
👾
rinha e código

Alan Albuquerque Ferreira Lopes offpepe

👾
rinha e código
View GitHub Profile
@offpepe
offpepe / repository.cs
Created March 31, 2023 13:20 — forked from Guifgr/repository.cs
MultiThread save changes
public void SaveChangesParallel(List<objeto> objetos)
{
var saveList = new List<List<objeto>>();
var count = 0;
while (count < objetos.Count)
{
var partialSaves = objetos.Skip(count).Take(250).ToList();
count += partialSaves.Count;
saveList.Add(partialSaves);
}
@offpepe
offpepe / woovi_job.md
Created March 3, 2023 21:24 — forked from sibelius/woovi_job.md
Woovi Job Description