How about changing isDataLoaderCompatibleExecution() in DataLoaderDispatcherInstrumentation to protected such that subclass can override it ?
My use-case is that I have a CustomExecutionStrategy which will delegate to different ExecutionStrategy dynamically . But when I delegate to AsyncExecutionStrategy , as the QueryStrategy in the ExecutionContext is still CustomExecutionStrategy , it causes the aggressively batching cannot be enabled as isDataLoaderCompatibleExecution() simply check for the ExecutionStrategy in the ExecutionContext is AsyncExecutionStrategy or not to enable aggressively batching . Hence I would like to override it to provide my own logic to decide when to enable aggressively batching