If you start skipping bootstrap phases then modules that inject data via hook_node_load() or hook_entity_load() will not get run.<div><br clear="all">Dave Reid<br><a href="mailto:dave@davereid.net">dave@davereid.net</a><br>


<br><br><div class="gmail_quote">On Sat, Feb 12, 2011 at 9:06 PM, Ryan Chan <span dir="ltr">&lt;<a href="mailto:ryanchan404@gmail.com">ryanchan404@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello,<br>
<br>
I want to use some Drupal7 functions such as node_load,<br>
taxonomy_term_load in my custom written PHP applications.<br>
<br>
I managed to use them by running a full drupal bootstrap, function is okay,<br>
<br>
i.e.<br>
<br>
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);<br>
$node = node_load(123);<br>
<br>
However, when profiling the code using Xdebug, I found<br>
drupal_bootstrap is just too heavy, i.e. used 80% of my application<br>
CPU time even I am doing simple query such as node_load.<br>
<br>
Of course, I can direct query the Drupal DB but I don&#39;t want to<br>
reinvent the wheel, but now seems it is too much overhead.<br>
<br>
Any suggestion when outside application want to access Drupal data,<br>
for the above basic query (read only)?<br>
<br>
Thanks.<br>
</blockquote></div><br></div>