Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By museumboy on
Even if I load a page without any views I'm getting tremendous SQL activity. Over 3000 calls per page! The call DrupalDefaultEntityController::load is loading almost 1000 times. I've tried stripping my site completely down, changing themes, removing the nav... Nothing seems to affect the high SQL load.
Unfortunately I don't have any time base for when this problem started. Thus I can't connect it with any particular change in the instal.
Comments
Hm .. did you check what
Hm .. did you check of which nature those SQL calls are? That might give you an indication where they come from. Also a tool like xdebug might help to see which functions / classes are going a bit wild.
I like cookies!
I figured out the cause
The extra calls are put in there by TB Mega Menu. It seems to load the assets of every entity linked on the main menu. I don't know why. I'll look at this more today and probably submit a support request there.
Correction
Turns out its not solely TB Mega Menu, loading other menus causes this as well.