Method WithScheduleGranularity
WithScheduleGranularity<TDescription>(TDescription, ScheduleGranularity)
Specifies the the unit of work that will be processed by each worker thread.
Must be used with ScheduleParallel.
Declaration
public static TDescription WithScheduleGranularity<TDescription>(this TDescription description, ScheduleGranularity granularity)
where TDescription : ILambdaJobDescription
Parameters
Type |
Name |
Description |
TDescription |
description |
|
ScheduleGranularity |
granularity |
If Chunk is passed (the safe default),
work is distributed at the level of whole chunks. This can lead to poor load balancing in cases where the
number of chunks being processed is low (fewer than the number of available worker threads), and the cost to
process each entity is high. In these cases, pass Entity
to distribute work at the level of individual entities.
|
Returns
Type |
Description |
TDescription |
|
Type Parameters
Name |
Description |
TDescription |
|