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.
When setting
TaskHubWorker.TaskOrchestrationDispatcher.IncludeParameters
totrue
, we store two copies of input payloads for activities and sub-orchestrators into thedt.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.