Body: <p>We have a Global page that has about 10 tabs with a bunch of fields each. The thing takes between 50 and 80 seconds to load. The debugger shows that it fires off over 9000 events and makes almost 900 db queries. I'm trying to figure out how to troubleshoot this in order to try to speed it up. It appears that each time afterRenderTemplate is fired, it takes 5 or more seconds before getting to the next step.</p>
  <p><a href="https://i.sstatic.net/89aY2.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/89aY2.png" alt="Screen Shot" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-03T07:47:38.170Z
Comments.Text: Could be a plugin. Start by disabling all your plugin with `'disabledPlugins' => '*',` in your `config/general.php` ([docs](https://craftcms.com/docs/3.x/config/config-settings.html#disabledplugins)). If things speed up, try to re-add them one by one to find the guilty one.
Comments.UserDisplayName: Oli
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-03-04T20:33:24.433Z
Comments.Text: Thanks for that tip! I disabled every plugin and the global didn't even speed up by one second. I'm guessing I just have too many fields (many of them Matrix Fields) in there.
Comments.UserDisplayName: Tony DeStefano
Tags: <globals>
Title: Troubleshooting General Slowness?
ThreadText: # Troubleshooting General Slowness?
  
  (Asked by: username_0 on 2021-03-02)
  
  We have a Global page that has about 10 tabs with a bunch of fields each. The thing takes between 50 and 80 seconds to load. The debugger shows that it fires off over 9000 events and makes almost 900 db queries. I'm trying to figure out how to troubleshoot this in order to try to speed it up. It appears that each time afterRenderTemplate is fired, it takes 5 or more seconds before getting to the next step.
  
  [![Screen Shot](https://i.sstatic.net/89aY2.png)](https://i.sstatic.net/89aY2.png)
  
  **Tags:** globals
  
  > **Comments:**
  > **username_1**: Could be a plugin. Start by disabling all your plugin with `'disabledPlugins' => '*',` in your `config/general.php` ([docs](https://craftcms.com/docs/3.x/config/config-settings.html#disabledplugins)). If things speed up, try to re-add them one by one to find the guilty one.  
  > **username_0**: Thanks for that tip! I disabled every plugin and the global didn't even speed up by one second. I'm guessing I just have too many fields (many of them Matrix Fields) in there.  
  
  ---
  
  ## 0 answers
  
  