esbtools / event-handler

Notification in, document out.
GNU General Public License v3.0
3 stars 6 forks source link

Consider fetching another batch of documents events after we've acquired locks for document identities #12

Open alechenninger opened 8 years ago

alechenninger commented 8 years ago

Per @bserder:

You retrieve a batch of event documents here, and then try to optimize by matching identities. The batch may not contain all events of a particular identity because of the batch size restriction. A better approach would be is to get a batch of identities, lock them, and then load all the documents that were acquired. Then you'll have all documents of a particular identity at a given moment.

Considerations: