How to determine the global_index of an Aggregate (needed for the TrackingEventProcessor)?

Hi!

I would like to know the global_index of the last applied event of an aggregate.
I need this information to set up an TrackingEventProcessor which tracks only new events of the aggregate.

Is there a way to access the global_index column? Or do I have to select this information from the domain_event_entry Table myself?

Thanks,
Dirk

Hi Dirk,

at the moment, I’m afraid, you’ll have to fetch it from the domain_event_entry table. We have been discussing about this internally, already, and came to the conclusion that the event store should return this token as a result of the publish() method. We’re currently looking at how we could do this without breaking backward compatibility.

Cheers,

Allard