EventFlow icon indicating copy to clipboard operation
EventFlow copied to clipboard

Repopulate multiple readmodels at the same time

Open hvidgaard opened this issue 4 years ago • 4 comments

We're starting to get some experience with running a system based on EventFlow in production. At the present I not have much that we need to change, but I would like to repopulate multiple readmodels at the same time. I have an implementation for it made, but I struggle to get it build on my machine such that I can test it out.

Do you have some documentation on how to get the build running locally?

hvidgaard avatar Jan 21 '21 17:01 hvidgaard

Hi,

In EventFlow, the EventFlow.TestHelpers project you have two examples for populating and repopulating a read model. I take it that's what you want?

Suites/TestSuiteForReadModelStore

  • RePopulateHandlesManyAggregates
  • PopulateCreatesReadModels

CapitanMurloc avatar Jan 22 '21 06:01 CapitanMurloc

Hi

I have multiple readmodels repopulating some times. If I update say 10, it need to fetch events from the DB 10 times, where as if it could repopulate multiple readmodels at the same time, it only fetches events once but updates all the readmodels.

hvidgaard avatar Jan 22 '21 08:01 hvidgaard

@hvidgaard is it bulk operations of the same read model or 10 different read models? EventFlow does do updates to different read models at the same time, have a look at DispatchToReadStores. Although, there might be a bug.

What kind of read store are you using? MSSQL?

https://github.com/eventflow/EventFlow/blob/develop-v1/Source/EventFlow/ReadStores/DispatchToReadStores.cs

rasmus avatar Jun 17 '21 05:06 rasmus

We're using MSSQL, and are trying to optimize a complete rebuild of all readmodels. It's quite a while since I looked at it, but I think it was reading all events multiple times, instead of just once.

hvidgaard-ims avatar Jun 22 '21 09:06 hvidgaard-ims

Hello there!

We hope you are doing well. We noticed that this issue has not seen any activity in the past 90 days. We consider this issue to be stale and will be closing it within the next seven days.

If you still require assistance with this issue, please feel free to reopen it or create a new issue.

Thank you for your understanding and cooperation.

Best regards, EventFlow

github-actions[bot] avatar Apr 08 '23 13:04 github-actions[bot]

Hello there!

This issue has been closed due to inactivity for seven days. If you believe this issue still needs attention, please feel free to open a new issue or comment on this one to request its reopening.

Thank you for your contribution to this repository.

Best regards, EventFlow

github-actions[bot] avatar Apr 16 '23 09:04 github-actions[bot]