How to Improve the Performance of Your Sitecore Websites

November 30, 2016 Mike Skutta

A fast loading website is a very important part of any site visitor's experience. Sitecore's Profiler tool can help developers optimize the performance of their website.

The Sitecore Profiler tool allows you to debug performance and compare methods while you are developing.

Here’s what you need to do: 

  1. Login as admin. 
  2. Append this to your querystring: &sc_debug=1&sc_prof=1&sc_trace=1&sc_ri=1 
  3. Review the performance times of your classes or methods. 
  4. Investigate classes or methods that are taking a long time and adjust as appropriate. 

In addition to seeing the results of time it takes for Sitecore to process and render, you can easily check performances of your own classes or methods. 

For example, I want to see whether it’s faster to get the item using .GetItem or using .SelectSingleItem

var PathSettings = "/sitecore/content/Sites/Main/WebSettings/Site Settings/Professionals Settings";    

Profiler.StartOperation("GET-ITEM");
Item
test1 = Sitecore.Context.Database.GetItem(PathSettings); 
Profiler.EndOperation("GET-ITEM");    

Profiler.StartOperation("GET-ITEM2");
Item test2 = Sitecore.Context.Database.SelectSingleItem(PathSettings);
Profiler.EndOperation("GET-ITEM2");

Here’s what you’d see on your page as a result:

improve the performance of sitecore website

Reach out if you'd like to learn more.

Subscribe

The One North Ideas Update delivers each month’s latest posts on digital for PSOs—including industry trends, news and our latest research—directly to your inbox. Although it’s our goal to always include thought-provoking and compelling content, you can unsubscribe at any time. 

See our Privacy Policy to learn more about how we protect and manage your submitted data.

Mike Skutta Architect

As an Architect within the Technology Labs group at One North, Mike works to research, test and integrate new technologies for both One North and its clients. He is also a Sitecore Technology MVP – a distinction received by only 217 people worldwide – and holds more than 14 years of experience architecting, designing, developing software and leading technology teams. Based in Florida, Mike is often seen wheeling around the office via our robot.

  • Favorite vending machine snack: Doritos
  • Most unusual job: Working as a Serf at Medieval Times

One North Interactive 
222 North LaSalle St, #1500
Chicago, IL 60601

+1 312.469.1740