docs: #306 trying to optimize finding related secions

This commit is contained in:
Hamid Reza Mohammadi 2022-04-28 07:57:57 +04:30
parent b4a455fba4
commit 43425b3019

View File

@ -178,7 +178,8 @@ namespace RMuseum.Services.Implementation
await _UpdateSectionRelatedSectionsInfoNoSaveChanges(context, section);
number++;
await jobProgressServiceEF.UpdateJob(job.Id, number);
if(number % 100 == 0)
await jobProgressServiceEF.UpdateJob(job.Id, number);
}
await jobProgressServiceEF.UpdateJob(job.Id, 100, "", true);