Skip to content

Commit

Permalink
Merge branch 'test' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
matssa authored Jun 18, 2024
2 parents d6816d8 + c242454 commit 4fc93ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assessments.Transformation/PublishDynamicProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private static List<DynamicProperty> GetExistingDynamicProperties(IDocumentSessi
while (true)
{
//Page through the dynamicPropertis as RavenDb server per default has a limit of 128 = 2^7 result (batchSize)
assessmentsBatch = ravenSession.Query<DynamicProperty>().Where(x => x.Id.StartsWith(firstPartOfDocumentName))?.Skip(pointer).Take(batchSize).ToList();
assessmentsBatch = ravenSession.Query<DynamicProperty>().Customize(x=>x.WaitForNonStaleResultsAsOfNow()).Where(x => x.Id.StartsWith(firstPartOfDocumentName))?.Skip(pointer).Take(batchSize).ToList();

if (!assessmentsBatch.Any()) break;

Expand Down

0 comments on commit 4fc93ba

Please sign in to comment.