Hi node_load_multiple() taking too much time.

Events happening in the community are now at Drupal community events on www.drupal.org.
amolbhavsar's picture

Hi All,

I am using Drupal 7.

In a page for loading a node of particular content type, I am using node_load_multiple().

Due to some unknown reason, the page is taking too time that the page never loads.

Can somebody please tell me what must have gone wrong?

Looking forward for help from somebody.

Thanks.

Comments

node_load_multiple() does

good_man's picture

node_load_multiple() does load the full node object, so if you are loading a lot of nodes for sure it'll take long. Either enable the built-in caching or build a custom query if you don't need the full node object.

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: