treivize opened a new issue, #4038:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/4038

   ### Describe the bug
   
   A significant latency is observed when correlating process instances via 
business key when message is received and there are hundreds of on-going 
processes persisted in process collection.
   
   ### Expected behavior
   
   Correlate the event by business key performance should not be dependent of 
the amount of on-going processes persisted in DB.
   
   ### Actual behavior
   
   The current MongoDB Process Instances implementation is fetching all the 
on-going process instances in DB and apply a post filtering based on the 
business key instead of relying on a DB lookup and an index based on the 
businessKey to speed up the search.
   
   ### How to Reproduce?
   
   _No response_
   
   ### Output of `uname -a` or `ver`
   
   _No response_
   
   ### Output of `java -version`
   
   _No response_
   
   ### GraalVM version (if different from Java)
   
   _No response_
   
   ### Kogito version or git rev (or at least Quarkus version if you are using 
Kogito via Quarkus platform BOM)
   
   _No response_
   
   ### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
   
   _No response_
   
   ### Additional information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to