Currently when UseVersionHistory is set to true in DataStoreOptions it will create aggregate history items for all aggregates using DataStore when it calls IncrementAggregateHistoryIfEnabled<T>.
If DataStoreOptions was extended to allow for either a white list or a blacklist of aggregate types for version history then it would prevent un-needed read and write for aggregates where the version history will never be used (e.g. in log items).
Currently when
UseVersionHistoryis set totrueinDataStoreOptionsit will create aggregate history items for all aggregates using DataStore when it callsIncrementAggregateHistoryIfEnabled<T>.If
DataStoreOptionswas extended to allow for either a white list or a blacklist of aggregate types for version history then it would prevent un-needed read and write for aggregates where the version history will never be used (e.g. in log items).