Closed alemhnan closed 7 years ago
Do you have a unit test to reproduce it?
Not yet. Monday morning I'll isolate the behaviour and publish in a repo. I'll keep you posted.
On 22 Sep 2017, 17:42, at 17:42, Adriano Raiano notifications@github.com wrote:
Do you have a unit test to reproduce it?
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/adrai/node-cqrs-eventdenormalizer/issues/63#issuecomment-331483508
Hello,
I created a repo (https://github.com/alemhnan/UT) that reproduce my issues. There are two commands with one event each.
On npm start
the two commands will be issued. Then the reply will be run. If you try you will see an error in console.
It does connect to a mongodb, default set as: mongodb://localhost:27017/eventstore
and mongodb://localhost:27017/denormalize
That did the trick. Thanks a lot!
I'm running the
replayStreamed
function and I have issues in getting it working. Apparently, theviewBuilders
are not committing the data during each replay. Therefore if to denormalize event2
I need to lookup data already denormalized in event1
it fails because it is not committed yet in the database.Am I doing something obviously wrong? or maybe you are caching the views and committing in batches?
Do you have any hint how to approach this case?