EventFlow icon indicating copy to clipboard operation
EventFlow copied to clipboard

Configurable MongoDB Query BatchSize

Open BerkCakir opened this issue 3 years ago • 1 comments

I'm using EventFlow with MongoDB eventstore. I really need a larger batch size while loading committed events. Is it possible to make this batch size configurable?

public async Task<IReadOnlyCollection<ICommittedDomainEvent>> LoadCommittedEventsAsync(IIdentity id, int fromEventSequenceNumber, CancellationToken cancellationToken) { return await MongoDbEventStoreCollection .Find(model => model.AggregateId == id.Value && model.AggregateSequenceNumber >= fromEventSequenceNumber, new FindOptions { BatchSize = desiredValue }) .ToListAsync(cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); }

Thanks.

BerkCakir avatar Aug 24 '22 14:08 BerkCakir

Seems easy enough

rasmus avatar Aug 25 '22 10:08 rasmus

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]