joliver/EventStore — Issue #97: Provide a non-commit-marking dispatch
Author: CaptainCodeman
Created: 2012-01-29 01:13:59+00:00
State: open

For bulk-importing / high-load I find the call to `MarkAsDispatched` significantly slows commits down even when using a 'fast' database (e.g. MongoDB). It can be the difference between 16-17k per second and 4-5k per second.

I think having an option to dispatch commits _without_ marking them as dispatched would be useful (maybe doing the marking in a batch or at the end of a run).

Perhaps a base dispatch class can be decorated with a class to do the marking (if required) and these used by either the Synchronous or Asynchronous scheduler?

I'd welcome any opinions on it first.