You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have learned in the past that searching based on Guid primary key is less performant as compared to Sequential Integer/Long primary key.
Is there any work around so we can get the best of both worlds - leverage Outbox for gurantee and search friendly primary key?
Is it possible to do like this in command handler?
I am thinking to have 3 methods in UnitOfWork
SaveChanges - to flush entity changes - explicit call in command handler and fetch Primary Key
BeginTransaction - to start database transaction - from decorator
hello @kgrzybek ,
We have learned in the past that searching based on Guid primary key is less performant as compared to Sequential Integer/Long primary key.
Is there any work around so we can get the best of both worlds - leverage Outbox for gurantee and search friendly primary key?
Is it possible to do like this in command handler?
I am thinking to have 3 methods in UnitOfWork
REference: https://entityframeworkcore.com/saving-data-transaction
Commit method can Invoke DomainEventDispatcher which in turn can record DomainEventNotifications in Outbox table.
Open for other ideas?
The text was updated successfully, but these errors were encountered: