Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

Is it good or bad?

$
0
0

I often get myself creating this kind of complex solutions, and I have been wondering if it is good or bad (not on the reading aspect, but on the topic of eating too much resources from the server and/or causing locks/not removing allocated resource etc.):

Here is my example:

$lists = (Get-SPWebApplication $url | Get-SPSite -Limit All | ? {$_.URL -match $example} | Get-SPWeb -Limit All | % { $_.Lists }).Where({$_.TemplateFeatureId -eq "xxx-xxx-xxx" -and $_.Views.Count -ge 1})

What are your opinions?


Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>