You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a constantly growing stream to which I just append messages. I don't need the entire stream, but currently the only 3 options I have are the following:
use Store.OpenStream:
Loads whole stream (with deserializing,...) and append the new messages. Not performant, not memory-friendly
use snapshots:
Snapshots are planned(?) to be deprecated in the future.
Also: why load a big snapshot if you just want to add 1-n messages?
Use Store.Advanced.GetFrom(streamName,0, Int32.MaxValue):
Use Store.Advanced.GetFrom(...).LastOrDefault() to get the latest StreamRevision and CommitSequence and prepare a CommitAttempt.
Still loads the whole stream.
Greg Youngs eventstore has the ability to just append a message: EventStoreTransaction.WriteAsync(...) - an API like this would be great!
The text was updated successfully, but these errors were encountered:
I have a constantly growing stream to which I just append messages. I don't need the entire stream, but currently the only 3 options I have are the following:
Store.OpenStream
:Loads whole stream (with deserializing,...) and append the new messages. Not performant, not memory-friendly
Snapshots are planned(?) to be deprecated in the future.
Also: why load a big snapshot if you just want to add 1-n messages?
Store.Advanced.GetFrom(streamName,0, Int32.MaxValue)
:Use
Store.Advanced.GetFrom(...).LastOrDefault()
to get the latestStreamRevision
andCommitSequence
and prepare a CommitAttempt.Still loads the whole stream.
Greg Youngs eventstore has the ability to just append a message:
EventStoreTransaction.WriteAsync(...)
- an API like this would be great!The text was updated successfully, but these errors were encountered: