« Return to Thread: Performance: is better a node_load or a direct SQL query ?

Performance: is better a node_load or a direct SQL query ?

by Michel Morelli :: Rate this Message:

Reply to Author | View in Thread

Hi all. I have a content type with 15+ fields. In some situations I need
to retrieve only 3 fields.

So, is better (perfomance, security, portability, etc etc) a call to
node_load() function or a direct SQL query on the right table ?

M.

--
Michel 'ZioBudda' Morelli                       michel@...
Consulenza sistemistica in ambito OpenSource.
Sviluppo applicazioni web dinamiche (LAMP+Ajax)
Telefono: 0200619074
Telefono Cell: +39-3939890025 --  Fax: +39-0291390660

http://www.ziobudda.net                         ICQ: 58351764  
http://www.ziobuddalabs.it                      Skype: zio_budda
http://www.ziodrupal.net        MSN: michel@...                  
                                                JABBER: michel@...

--
[ Drupal support list | http://lists.drupal.org/ ]

 « Return to Thread: Performance: is better a node_load or a direct SQL query ?