RED-10200: Spike performant rules update logic

This commit is contained in:
maverickstuder 2024-12-02 10:54:28 +01:00
parent a36aa0c047
commit a93049cd41

View File

@ -205,7 +205,6 @@ public class AnalyzeService {
dictionarySearchService.addDictionaryEntities(analysisData.dictionary(), analysisData.document());
log.info("Finished Dictionary Search for file {} in dossier {}", analyzeRequest.getFileId(), analyzeRequest.getDossierId());
long start = System.currentTimeMillis();
// we could add the imported redactions similar to the manual redactions here as well for additional processing
List<FileAttribute> allFileAttributes = entityDroolsExecutionService.executeRules(analysisData.kieWrapperEntityRules().container(),
analysisData.document(),
@ -215,8 +214,6 @@ public class AnalyzeService {
analysisData.nerEntities(),
context);
log.info("Finished entity rule execution for file {} in dossier {}", analyzeRequest.getFileId(), analyzeRequest.getDossierId());
long end = System.currentTimeMillis();
System.out.println("Rule exec duration: " + (end - start));
EntityLogChanges entityLogChanges = entityLogCreatorService.createInitialEntityLog(analyzeRequest,
analysisData.document(),