-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Identical revision/commit for multiple events #32
Comments
ah I think this is a bug in spear, nice find! 🙂 For projected streams you need to provide the link revision/positions and the translation to Projected streams (like Currently spear discards the link information by default since it rarely has any important information in it and links are kind of annoying to deal with in general, but I totally forgot that you need the link to track position in a projected stream! Links are a headache 🤦 Luckily I think the fix for this is pretty small: put the necessary link information into the |
v0.8.0 should have fix for this, looks like it got published right now 👍 fwiw I think it's normal to have many events with the same commit/prepare positions. I'm not totally clear on where those come from but I think it has to do with how EventStoreDB indexes events. If I'm not mistaken, the reason why the subscription kept starting from scratch with your streams is that the thanks for reporting! 🙂 |
Thanks for the quick response! Great package, and great work! 🚀 |
This might be something I don't understand about eventstore and not a Spear problem at all..
However, I'm trying to set the :from parameter on a subscription to a $by-category stream.
On other libraries, it's common to make a position from the commit_position and prepare_position values. In spear this is wrapped by just providing the last event you want to start the catch up subscription from (I really like that feature!)
Unfortunately, I seem to get all events regardless on the from: event.
Further, by inspection I see that the commit_position and prepare_position is equal for many of my events.
Here are three events in different streams that all have the same value for commit and prepare. Is this intentional from eventstore? Is there any way to specify the from: parameter on a $by-category stream?
The text was updated successfully, but these errors were encountered: