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
@sibelius
sibelius / woovi_job.md
Last active February 27, 2024 00:13
Woovi Job Description
@Guifgr
Guifgr / repository.cs
Created March 18, 2022 12:14
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);
}
$months = [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',