Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

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

Open
alechenninger opened this issue Feb 3, 2016 · 0 comments

Comments

@alechenninger
Copy link
Contributor

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:

  • What do we initially retrieve? Can we query lightblue for events with a max number of unique identities? Does this perform better than just simply retrieving a large batch?
  • Is making an additional query on average worth the chance of finding more events you could optimize?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant