Skip to content

Explain system.js recomendation #1955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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