Skip to content

Commit

Permalink
DOCS-2626: Explain system.js recomendation
Browse files Browse the repository at this point in the history
Signed-off-by: kay <[email protected]>
  • Loading branch information
TimSlavinMongoDB authored and kay-kim committed Aug 28, 2014
1 parent 43a3768 commit 0e8d21a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/tutorial/store-javascript-function-on-server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ Store a JavaScript Function on the Server

.. note::

We do **not** recommend using server-side stored functions if
possible.
Do not store application logic in the database. There are performance
limitations to running JavaScript inside of MongoDB. Application code
also is typically most effective when it shares version control with
the application itself.

There is a special system collection named ``system.js`` that can store
JavaScript functions for reuse.
Expand Down

0 comments on commit 0e8d21a

Please sign in to comment.