{"id":568,"date":"2013-01-16T12:38:38","date_gmt":"2013-01-16T12:38:38","guid":{"rendered":"http:\/\/www.myfatblog.co.uk\/?p=568"},"modified":"2013-01-16T12:48:59","modified_gmt":"2013-01-16T12:48:59","slug":"performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010","status":"publish","type":"post","link":"http:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/","title":{"rendered":"Performance issues when using &ldquo;Save Site As Template&rdquo; option with content in SharePoint 2010"},"content":{"rendered":"<h2>Scenario Description<\/h2>\n<p>We recently hit a performance problem on a client environment when creating sites through code. These sites which had been created with the Team Site template and then saved as templates by using the \u201cSave Site As Template\u201d option in the UI were taking upwards of 40 seconds to deploy.<\/p>\n<p>During testing we then found that all sites were taking significantly longer periods to deploy, including those built with out of the box Team Site and Blank Site templates.<\/p>\n<h2>Re-creating the issue.<\/h2>\n<p>In order to prove the issue, I built a new SharePoint 2010 server and deployed a new web application with no customisations and only minimal configuration. No user profile, no search etc.<\/p>\n<p>A new web application was created with a site collection and then a root site based on the Team Site Template.<\/p>\n<p>A new sub-site was created from the root, and a fiddler capture showing the time taken from submitting the AddGallery.aspx page to the redirection to the created subweb. This timed the sub-site creation at 1.997 seconds.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image001.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px auto; float: none; display: block; background-image: none;\" title=\"clip_image001\" border=\"0\" alt=\"clip_image001\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image001_thumb.png\" width=\"373\" height=\"107\" \/><\/a><\/p>\n<p>A small amount of content was then added to this team site (~5Mb of mixed word documents and images) and then the site was saved as a template including content.<\/p>\n<p>A new Team site (Based on the OOTB Team Site, not the Template) was then created, again using fiddler to measure the time taken from submission of AddGallery.aspx to the redirection to the new sub-site.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image002.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px auto; float: none; display: block; background-image: none;\" title=\"clip_image002\" border=\"0\" alt=\"clip_image002\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image002_thumb.png\" width=\"411\" height=\"116\" \/><\/a><\/p>\n<p>In this instance the site creation time was measured at 3.863 seconds.<\/p>\n<p>The template created in the previous step was deactivated in the site collection user solution gallery. Further content was then added to the site used as the template base and a new template created with content. This time containing ~30Mb of content of mixed types.<\/p>\n<p>A new team site was created once more with a fiddler trace.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image004.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px auto; float: none; display: block; background-image: none;\" title=\"clip_image004\" border=\"0\" alt=\"clip_image004\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image004_thumb.png\" width=\"532\" height=\"88\" \/><\/a><\/p>\n<p>Image edited to fit on page. This creation was timed at 21.416 seconds.<\/p>\n<p>The user solution containing the large content was then deactivated in the user solution store and another Team site created.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image005.png\"><img loading=\"lazy\" decoding=\"async\" style=\"margin: 5px auto; float: none; display: block; background-image: none;\" title=\"clip_image005\" border=\"0\" alt=\"clip_image005\" src=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image005_thumb.png\" width=\"347\" height=\"120\" \/><\/a><\/p>\n<p>Site creation was timed at 2.172 seconds.<\/p>\n<h2>Issue Summary<\/h2>\n<p>Whenever the \u2018Save Site as Template\u2019 option is used to create a template that contains content, there is a performance hit in the site collection when creating new sites from ANY template including out of the box ones.<\/p>\n<p>The issue is limited to the site collection as it is related to solutions stored in the User Solution Gallery which has a site collection scope.<\/p>\n<p>This issue has been recreated on several environments at various patch levels from RTM to December 2012 CU.<\/p>\n<h2>Potential Workaround<\/h2>\n<p>A further test revealed that downloading the User Solution, importing into Visual Studio 2010 and then changing from a Sandbox solution to a Farm solution before re-uploading into the farm removed the performance hit.<\/p>\n<p>The key issue with this workaround is that it requires a developer and farm deployment, thus negating the benefits of user solutions and it does not fix the problem for the future. It is always possible that any user with the relevant rights could create a site template with content and potentially cause major problems with site management.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scenario Description We recently hit a performance problem on a client environment when creating sites through code. These sites which had been created with the Team Site template and then saved as templates by using the \u201cSave Site As Template\u201d option in the UI were taking upwards of 40 seconds to deploy. During testing we &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[31,35],"tags":[100,99,101],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Performance issues when using \u201cSave Site As Template\u201d option with content in SharePoint 2010 - Blog of an overweight SharePoint addict<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Performance issues when using \u201cSave Site As Template\u201d option with content in SharePoint 2010 - Blog of an overweight SharePoint addict\" \/>\n<meta property=\"og:description\" content=\"Scenario Description We recently hit a performance problem on a client environment when creating sites through code. These sites which had been created with the Team Site template and then saved as templates by using the \u201cSave Site As Template\u201d option in the UI were taking upwards of 40 seconds to deploy. During testing we &hellip; Continue reading\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog of an overweight SharePoint addict\" \/>\n<meta property=\"article:published_time\" content=\"2013-01-16T12:38:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-01-16T12:48:59+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image001_thumb.png\" \/>\n<meta name=\"author\" content=\"Cimares\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cimares\" \/>\n<meta name=\"twitter:site\" content=\"@cimares\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cimares\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/\",\"url\":\"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/\",\"name\":\"Performance issues when using \u201cSave Site As Template\u201d option with content in SharePoint 2010 - Blog of an overweight SharePoint addict\",\"isPartOf\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image001_thumb.png\",\"datePublished\":\"2013-01-16T12:38:38+00:00\",\"dateModified\":\"2013-01-16T12:48:59+00:00\",\"author\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/#primaryimage\",\"url\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image001_thumb.png\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image001_thumb.png\"},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\",\"url\":\"http:\/\/www.myfatblog.co.uk\/\",\"name\":\"Blog of an overweight SharePoint addict\",\"description\":\"The rantings of a (not so) food obsessed IT consultant!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\",\"name\":\"Cimares\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"caption\":\"Cimares\"},\"sameAs\":[\"http:\/\/www.myfatblog.co.uk\"],\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Performance issues when using \u201cSave Site As Template\u201d option with content in SharePoint 2010 - Blog of an overweight SharePoint addict","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/","og_locale":"en_US","og_type":"article","og_title":"Performance issues when using \u201cSave Site As Template\u201d option with content in SharePoint 2010 - Blog of an overweight SharePoint addict","og_description":"Scenario Description We recently hit a performance problem on a client environment when creating sites through code. These sites which had been created with the Team Site template and then saved as templates by using the \u201cSave Site As Template\u201d option in the UI were taking upwards of 40 seconds to deploy. During testing we &hellip; Continue reading","og_url":"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/","og_site_name":"Blog of an overweight SharePoint addict","article_published_time":"2013-01-16T12:38:38+00:00","article_modified_time":"2013-01-16T12:48:59+00:00","og_image":[{"url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image001_thumb.png"}],"author":"Cimares","twitter_card":"summary_large_image","twitter_creator":"@cimares","twitter_site":"@cimares","twitter_misc":{"Written by":"Cimares","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/","url":"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/","name":"Performance issues when using \u201cSave Site As Template\u201d option with content in SharePoint 2010 - Blog of an overweight SharePoint addict","isPartOf":{"@id":"http:\/\/www.myfatblog.co.uk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/#primaryimage"},"image":{"@id":"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/#primaryimage"},"thumbnailUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image001_thumb.png","datePublished":"2013-01-16T12:38:38+00:00","dateModified":"2013-01-16T12:48:59+00:00","author":{"@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.myfatblog.co.uk\/index.php\/2013\/01\/performance-issues-when-using-save-site-as-template-option-with-content-in-sharepoint-2010\/#primaryimage","url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image001_thumb.png","contentUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/Performance-issues-when-using-Save-Site-_B0CC\/clip_image001_thumb.png"},{"@type":"WebSite","@id":"http:\/\/www.myfatblog.co.uk\/#website","url":"http:\/\/www.myfatblog.co.uk\/","name":"Blog of an overweight SharePoint addict","description":"The rantings of a (not so) food obsessed IT consultant!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6","name":"Cimares","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/","url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","contentUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","caption":"Cimares"},"sameAs":["http:\/\/www.myfatblog.co.uk"],"url":"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/"}]}},"_links":{"self":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/568"}],"collection":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=568"}],"version-history":[{"count":7,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/568\/revisions"}],"predecessor-version":[{"id":575,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/568\/revisions\/575"}],"wp:attachment":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=568"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}