Does PNP Powershell Decorate Traffic? #2543
-
Hi All, As most questions on here relate to rate limits and throttling, i was wondering if the cmdlets decorate traffic in order to allow sharepoint to prioritize it. To that point, does PnP Use CSOM, REST API or Microsoft Graph to establish connectivity and manage the Sharepoint Site? I'm currently struggling to get past rate limiting due to thousands of Sharepoint List items I manage via Powershell. I hit rate limits not long after using the Module, and only recently started using batching (only for archival and recycling the site list items) as set-pnplistitem doesnt like non string values in the batch. Any answers or ideas as to how i can better connect and get the list items in my sharepoint tenant would be appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Some of the underlying frameworks handle user agent decoration, like NONISV|SharePointPnP|PnPCore/ in PnPHttpClient But it is traffic just as all other traffic, and PnP.* are not officially supported frameworks, so no prioritation is done to my knowledge. PnP.PowerShell uses almost exclusively CSOM, so you could consider using Graph that tend to use less Resource Units on your RateLimit (amount is depending on how many licenses you have) and also performs much faster. |
Beta Was this translation helpful? Give feedback.
Some of the underlying frameworks handle user agent decoration, like NONISV|SharePointPnP|PnPCore/ in PnPHttpClient
In most traffic the PnPFramework RetryHandler will handle soft throttling retries (429)
But it is traffic just as all other traffic, and PnP.* are not officially supported frameworks, so no prioritation is done to my knowledge.
PnP.PowerShell uses almost exclusively CSOM, so you could consider using Graph that tend to use less Resource Units on your RateLimit (amount is depending on how many licenses you have) and also performs much faster.
If you need to use PnP.PowerShell on large lists, make sure your CAML query uses indexed fields and make sure your first filter is the o…