In a performance context, custom module block will be the best solution as per my understanding. Because you are not storing your block code in the database in that case. It is always good not to store code in the database so if you are creating a view [which is easy to implement but not recommended for performance point of view] then it will store the code in the database.<div>
<br><div class="gmail_quote">On Wed, May 26, 2010 at 7:45 PM, Michel Morelli <span dir="ltr">&lt;<a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all, I have a big site on a not so good server machine.<br>
<br>
Now I need to create (and display) a block with the last entry of a<br>
particular node type (call it &quot;foo&quot;).<br>
<br>
I can do this in 2 ways:<br>
- views (with template files)<br>
- custom module with costum block section<br>
<br>
In a performance context which is the best solution ?<br>
I use views in the site so this will not be the only view, and I use<br>
other custom modules so the block section will be part of one of them.<br>
<br>
Tnx.<br>
<br>
M.<br>
<br>
--<br>
Michel &#39;ZioBudda&#39; Morelli                       <a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a><br>
Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax)<br>
Telefono: 0200619074<br>
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660<br>
<br>
<a href="http://www.ziobudda.net" target="_blank">http://www.ziobudda.net</a>                         ICQ: 58351764<br>
<a href="http://www.ziobuddalabs.it" target="_blank">http://www.ziobuddalabs.it</a>                      Skype: zio_budda<br>
<a href="http://www.ziodrupal.net" target="_blank">http://www.ziodrupal.net</a>                        MSN: <a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a><br>
                                                JABBER: <a href="mailto:michel@ziobuddalabs.it">michel@ziobuddalabs.it</a><br>
<font color="#888888"><br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Amit Vyas<br><br>Email  : <a href="mailto:amit.vyas@blisstering.com">amit.vyas@blisstering.com</a><br>Mobile : +91 993-040-1490<br>Skype : vyasamit2004<br>
Twitter : amit_vyas<br>
</div>