Add events in the past or in the future #1494
-
It is posslbe via MartenDB to add events either in the past or in the future? Scenario A: A person "Peter" will change name to "John" at
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Not directly, though Copy & Transform might help you out here https://martendb.io/documentation/scenarios/copyandtransformstream/ (though currently it doesn't address event metadata, namely if one wanted to preserve the timestamp field value). |
Beta Was this translation helpful? Give feedback.
-
Thanks for your quick reply. That could work! Is it possible to chain the streams? When you for example load an aggregate ? |
Beta Was this translation helpful? Give feedback.
-
You'd be looking at projections across streams: https://martendb.io/documentation/events/projections/custom/ You could certainly join the streams in a more "manual fashion" (load multiple streams, join evenst & push them to a new stream) to create a new event stream from 2 or more streams... Just requires thinking a bit about event ordering and whether running on a live system or not. |
Beta Was this translation helpful? Give feedback.
Not directly, though Copy & Transform might help you out here https://martendb.io/documentation/scenarios/copyandtransformstream/ (though currently it doesn't address event metadata, namely if one wanted to preserve the timestamp field value).