title: Are MongoDB Stored JavaScript Procedures faster?
body: <p>I have questions regarding stored JavaScript Procedures. After reading the <a href="http://pointbeing.net/weblog/2010/08/getting-started-with-stored-procedures-in-mongodb.html" rel="nofollow noreferrer">Blog Entry</a> from PointBeing, I have some questions.</p>
  <ul>
  <li>Is there an advantage to storing my code in the DB? I mean functions like <code>lookups for documents</code>, not <code>adding numbers</code> like the example from PointBeing.</li>
  <li>Is MongoDB stored javascript faster than node.js javascript?</li>
  <li>Is MongoDB stored javascript queries cached and are they any faster?</li>
  </ul>
  <p>I'm interested in MongoDB stored javascript performance compared to Node.js Javascript.</p>