Skip to content

Commit

Permalink
Merge branch '1.0.x' into PIN-4294
Browse files Browse the repository at this point in the history
  • Loading branch information
nttdata-rtorsoli authored Dec 6, 2023
2 parents a8ada9a + c62e614 commit d588907
Showing 1 changed file with 19 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ object ReadModelQueries {
secondProjection
)

readModelService.aggregate[Agreement](config.agreements, aggregation, offset, limit)
readModelService.aggregate[Agreement](
collectionName = config.agreements,
pipeline = aggregation,
offset = offset,
limit = limit,
allowDiskUse = true
)
}

private def getPurposes(
Expand All @@ -94,7 +100,13 @@ object ReadModelQueries {
exclude("_id")
)
)
readModelService.aggregate[Purpose](collections.purposes, Seq(projection), offset, limit)
readModelService.aggregate[Purpose](
collectionName = collections.purposes,
pipeline = Seq(projection),
offset = offset,
limit = limit,
allowDiskUse = true
)
}

private def getDescriptors(
Expand Down Expand Up @@ -136,10 +148,11 @@ object ReadModelQueries {
)

readModelService.aggregateRaw[Descriptor](
collections.eservices,
Seq(projection1, unwindStep, zipProducer, unwindStep2, projection2),
offset,
limit
collectionName = collections.eservices,
pipeline = Seq(projection1, unwindStep, zipProducer, unwindStep2, projection2),
offset = offset,
limit = limit,
allowDiskUse = true
)
}

Expand Down

0 comments on commit d588907

Please sign in to comment.