PSResourceGet icon indicating copy to clipboard operation
PSResourceGet copied to clipboard

Find-PSResource returns all results at once instead of being paginated or as processed

Open ThomasNieto opened this issue 3 years ago • 2 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest released version
  • [X] Search the existing issues.

Steps to reproduce

If Find-PSResource returns a lot of results and takes a while to complete, the results are not output in real time but are blocked until all results are returned. PowerShell best practices are to output results as processed in order to not block the pipeline.

Expected behavior

Objects are output as returned from the web service.

Actual behavior

All objects have to be returned from the web service before being output.

Error details

No response

Environment data

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Binary     3.0.12     beta       PowerShellGet                       {Find-PSResource, Get-PSResource, Get-PSResourceR…

Name                           Value
----                           -----
PSVersion                      7.2.3
PSEdition                      Core
GitCommitId                    7.2.3
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

ThomasNieto avatar May 25 '22 00:05 ThomasNieto

@ThomasNieto thanks! We're working to include this in our performance improvement work in the upcoming preview releases.

anamnavi avatar May 26 '22 18:05 anamnavi

@anamnavi good to hear. During that work please make sure SupportsPaging is added as well.

ThomasNieto avatar Jun 01 '22 05:06 ThomasNieto