microsoft / durabletask-mssql

Microsoft SQL storage provider for Durable Functions and the Durable Task Framework
MIT License
87 stars 32 forks source link

Input payload duplication when IncludeParameters is set to true #84

Closed cgillum closed 2 years ago

cgillum commented 2 years ago

When setting TaskHubWorker.TaskOrchestrationDispatcher.IncludeParameters to true, we store two copies of input payloads for activities and sub-orchestrators into the dt.Payloads table, one for the task message and one for the history record. This is a waste of space and I/O. Ideally both the task messages and the history events should reference the same data payload record.