Class PerLevelDataLoaderDispatchStrategyWithDeferAlwaysDispatch

  • All Implemented Interfaces:
    DataLoaderDispatchStrategy

    public class PerLevelDataLoaderDispatchStrategyWithDeferAlwaysDispatch
    extends java.lang.Object
    implements DataLoaderDispatchStrategy
    The execution of a query can be divided into 2 phases: first, the non-deferred fields are executed and only once they are completely resolved, we start to execute the deferred fields. The behavior of this Data Loader strategy is quite different during those 2 phases. During the execution of the deferred fields the Data Loader will not attempt to dispatch in a optimal way. It will essentially dispatch for every field fetched, which is quite ineffective. This is the first iteration of the Data Loader strategy with support for @defer, and it will be improved in the future.