I have a polling container which consumes around 30k space documents in a day. During processing of these event, it needs some additional data from a different Pojo in space 'P' . So the mandatory part is that the event must be present in space.
Therefore i implemented a triggerOperationHandler, in which i check if that event is present, if so then polling container should consume the event, then i again quries the space to fetch the data from pojo 'P'.
I was wishing if i could some how avoid this double querying part i.e. in trigger handler, i check if my pojo 'P' is available, i can fetch the required data from pojo 'P' and add a couple of properties in my document and pass onto spaceDataEvent. annotated method.
Let me know if anything comes to mind or any other approach.
↧