For each node on any given page, the query

SELECT * FROM merci_node_type WHERE type = 'blog' AND type_setting <> 'disabled'

(here for a blog node) is executed three times. If you have a page with five blog posts, it's executed 15 times!

This needs to be cached (by content type). I might provide a patch, once you commit #648786: Internationalization?...

OTOH, it might indicate a need for refactoring the code to avoid doing the same thing more than once.

Comments

darrick’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.