From c0b7bc149c7f06fc0f5121721f54524c1b6e587e Mon Sep 17 00:00:00 2001 From: "Tim Slavin (MongoDB)" Date: Fri, 25 Jul 2014 15:48:00 -0400 Subject: [PATCH] DOCS-2626: Explain system.js recomendation --- source/tutorial/store-javascript-function-on-server.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/tutorial/store-javascript-function-on-server.txt b/source/tutorial/store-javascript-function-on-server.txt index 551a53818b3..47c8fa1a711 100644 --- a/source/tutorial/store-javascript-function-on-server.txt +++ b/source/tutorial/store-javascript-function-on-server.txt @@ -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.