// maxFeatures is assumed to be supported by all data sources, so supportsPaging depends
// only on offset being supported
boolean supportsPaging = source.getQueryCapabilities().isOffsetSupported();
if (supportsPaging) {
Platform platform = context.platform();
int availableProcessors = platform.availableProcessors();
nFetchThreads = Math.max(2, availableProcessors / 2);
} else {
nFetchThreads = 1;
}
}