public IAsyncEnumerable <IReadOnlyList <TEntity> > ToParallelAsyncEnumerable(int totalSegments) { var tableName = _context.Config.Metadata.GetOrAddClassInfo(typeof(TEntity)).GetTableName(); return(_context.ParallelScanAsyncEnumerable <TEntity>(tableName, _node, totalSegments)); }