In reading Drupals Building Blocks, in the discussion about optimizing an sql query, it mentions embedding queries.
I've read all the pros/cons and for one specific page I have, I would like to embed four different displays of one view so I'm trying to figure out the best place to do this.
My goal is that the "Maximum execution time of 30 seconds exceeded" will fall away. There is no problem anywhere on the site except for this one page (which was a marketing brain-child to put everything on one page; in affect to disregard the rest of the site).
Do I create a
page.tpl.php specific template and stick the code there or somewhere else?
I was trying to use:
$view = views_get_view('my_view_name'); print $view->execute_display('Display One Here');
But in addition to putting it in the right place, do I list the display with quotes and commas as in 'display two here', 'display three here' or do I need to repeat the
print $view-> for each display?
Of course, maybe there is a better way to do all of this?
The page in question generates a long list of products.