"oh sir, it's only wafer thin!" - managing large lists in sharepoint 2010

18
“Oh sir, it’s only wafer thin!” Managing Large Lists in SharePoint 2010 Michael Mukalian Director, Enterprise Business Collaboration LiquidHub

Upload: mmukalian

Post on 16-Nov-2014

2.392 views

Category:

Technology


0 download

DESCRIPTION

With SharePoint 2010, as has been said around the campfire, "5,000 is the new 2,000!" What does that mean? It means that we now need to be mindful of not just how many items are in our lists, but how our views are constructed as well because, well, it’s not as dramatic as the scene referenced in the title of this topic, but let’s just say it’s not really pretty. Today's talk will be a combination discussion and waklthrough of the various ways of handling and managing a large number of items in a SharePoint list.

TRANSCRIPT

  • 1. Add/Remove/Update a list column All columns including lookup and calculated columns, in addition to many types of updates, such as a type change ora uniqueness change. Some updates, such as a name change, are not blocked because they do not affect every itemin the list.Add/Remove/Update a List Content Affects every item in the list so it is blocked for any list that has more items than the list view threshold.TypeCreate/Remove an Index Affects every item in the list so it is blocked for any list that has more items than the list view threshold.Manage files which have no A non-indexed recursive query that fails for any list that has more items than the list view threshold.checked in versionNon-indexed recursive queriesIncludes filters and some sorts. This operation fails when the list size is greater than the list view threshold. Because there is no index, it does a full scan against the entire list. Also it returns all items, and it ignores folders.Cross list query Includes queries by the content query Web Part and follows the list view threshold setting for auditors and administrators, which by default is 20,000. If the operation involves more than 20,000 items, the query fails.Lookup columns that enforceYou cannot create lookup columns that enforce relationship behavior when the list it references contains more items than therelationship behaviorlist view threshold.Deleting a listAffects every item in the list so it is blocked for any list that has more items than the list view threshold.Deleting a siteIf the sum of all items in a site is greater than the list view threshold, deleting the site is prevented because it affects too many items.Save List as Template with DataAffects every item in the list so it is blocked for any list that has more items than the list view threshold.Showing Totals in List Views Performs a query against every item in the list so it is blocked for any list that has more items than the list view threshold.Enable/disable attachments in aAffects every item in the list so it is blocked for any list that has more items than the list view threshold.list

2. Delete/Copy/Rename a folderFails when the folder contains more items than the list view threshold because it affects too many rows.Queries that filter on non-indexed columns Fails when the container (folder or list) contains more items than the list the view threshold because it does a full scan against the entire folder because there is no index.Set fine grained security permissionsFails whenever the list or folder on which you are trying to set fine grained permissions contains more items than the list view threshold because it affects too many rows. You can still set fine-grained permissions on child items, such as documents, in a large list, although you cannot set the permissions on the list itself or on folders that contain more items than the list view threshold.Open with Explorer Does not show any items if a container has more items than the list view threshold (excluding items in sub folders). If a folder has 8,000 items total, but it has a sub folder that contains 4,000 items and only 4,000 items in the root, then Open with Explorer will work. If the root of a list contains more items than the list view threshold then Open with Explorer will not show anything. To use Open with Explorer the list must have items organized into folders in amounts less than the list view threshold in the root of any container. 3. Threshold/Limit Default Value DescriptionList View Threshold 5000Specifies the maximum number of list or library items that a database operation, such asa query, can process at one time. Operations that exceed this limit are blocked.To give you time to make alternative plans, SharePoint 2010 warns you on the ListSettings page when your list has exceeded 3,000 items. The warning contains a help linkto this topic.Unique Permissions50,000Specifies the maximum number of unique permissions allowed for a list or library.LimitEvery time you break the inheritance of permissions for an item or folder, it is counted as1 unique permission toward this limit. If you try to add an item that would lead toexceeding this limit, you are prevented from doing so.Row Size Limit6 Specifies the maximum number of table rows internal to the database used for a list orlibrary item. To accommodate wide lists with many columns, each item is wrapped overseveral internal table rows, up to 6 rows and up to a total of 8,000 bytes (excludingattachments).For example, if you have a list with many small columns, one that contains hundreds ofYes/No columns, then you could exceed this limit, in which case you would not be able toadd more Yes/No columns to the list, but you still may be allowed to add columns of adifferent type.Note: Farm administrators can only set this limit by using the object model, not through 4. Threshold/Limit Default Value DescriptionList View Lookup8 Specifies the maximum number of join operations, such as those based on lookup,Threshold Person/Group, or workflow status columns.If the query uses more than eight columns, the operation is blocked. However, it ispossible to programmatically select which columns to use by using maximal view, whichcan be set through the object modelList View Threshold 20,000Specifies the maximum number of list or library items that a database operation, such assize for auditors and a query, can process at one time when performed by an auditor or administrator withadministratorsappropriate permissions. This setting works in conjunction with Allow Object ModelOverride. 5. Threshold/LimitDefault Value DescriptionAllow Object Model Y Specifies whether or not developers can perform database operations, such as queries,Override that request an override of the List View Threshold to the higher limit specified by the List View Threshold for auditors and administrators. A farm administrator must enable an object model override, and then developers with appropriate permission may then programmatically request that their query use the higher List View Threshold to take advantage of it.Daily Time WindowNoneSpecifies a time period during which resource thresholds and limits are ignored. A farm administrator can configure a time window during "off-peak" hours in 15 minute increments and up to 24 hours, such as, 6:00 PM to 10:00 PM or 1:30 AM to 5:15 AM. Note: A database operation or query started within the daily time window continues until completion (or failure) even if it doesnt finish within the specified time window 6. Supported Column Types Unsupported Column TypesSingle line of textMultiple lines of textChoice (single value)Choice (multi-valued)Number CalculatedCurrency Hyperlink or PictureDate and TimeCustom ColumnsLookup (single value)Lookup (multi-valued)Person or Group (single value) Person or Group (multi-valued)Yes/No External DataManaged Metadata 7. Get-PSSnapin Where $_ Microsoft.SharePoint.Powershell $nullAdd-PSSnapin Microsoft.SharePoint.Powershell# variables$listName$isEnabled $false# get web$web Get-SPWebhttp://contososp10:8045/sites/pdncc1# get list$list $web$listName# enable/disable throttle$list $isEnabled# cleanup$web Get-PSSnapin Where $_ Microsoft.SharePoint.Powershell $nullRemove-PSSnapin Microsoft.SharePoint.Powershell 8. Designing Large Lists and Maximizing List PerformanceManage lists and libraries with many itemsWorking with Large Lists in SharePoint 2010 - List ThrottlingMetadata Navigation and Filtering in SharePoint Server 2010SPList.EnableThrottling PropertyManaging Large Lists in SharePoint for Users and Site Admins 9. http://www.mukalian.com/bloghttp://www.linkedin.com/in/mmukalian [email protected]@mukalian.com