Skip to content

Commit

Permalink
feat(snomed.reasoner): Increase page size for classifications
Browse files Browse the repository at this point in the history
  • Loading branch information
apeteri committed Sep 26, 2024
1 parent 796f1f4 commit ac34e31
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ final class ClassificationJobRequest implements Request<BranchContext, Boolean>,

private static final Logger LOGGER = LoggerFactory.getLogger("reasoner");

private static final int PAGE_SIZE = 50_000;

@NotEmpty
private String reasonerId;

Expand Down Expand Up @@ -135,7 +137,7 @@ private void executeClassification(final BranchContext context,

final ReasonerTaxonomy taxonomy;
try (Locks<BranchContext> locks = Locks.forContext(DatastoreLockContextDescriptions.CLASSIFY, parentLockContext).lock(context)) {
taxonomy = buildTaxonomy(revisionSearcher, reasonerExcludedModuleIds, concreteDomainSupported, context.getPageSize());
taxonomy = buildTaxonomy(revisionSearcher, reasonerExcludedModuleIds, concreteDomainSupported, PAGE_SIZE);
} catch (final LockedException e) {
throw new ReasonerApiException("Couldn't acquire exclusive access to terminology store for classification; %s", e.getMessage(), e);
}
Expand Down

0 comments on commit ac34e31

Please sign in to comment.