Skip to content

Commit ac34e31

Browse files
committed
feat(snomed.reasoner): Increase page size for classifications
1 parent 796f1f4 commit ac34e31

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

snomed/com.b2international.snowowl.snomed.reasoner/src/com/b2international/snowowl/snomed/reasoner/request/ClassificationJobRequest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ final class ClassificationJobRequest implements Request<BranchContext, Boolean>,
7373

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

76+
private static final int PAGE_SIZE = 50_000;
77+
7678
@NotEmpty
7779
private String reasonerId;
7880

@@ -135,7 +137,7 @@ private void executeClassification(final BranchContext context,
135137

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

0 commit comments

Comments
 (0)