From bb5a3bd3b87de87b45bb21e3f1af58c623a2bfb0 Mon Sep 17 00:00:00 2001 From: Michael Paik Date: Thu, 22 Jan 2015 13:33:06 -0500 Subject: [PATCH] WRITING-913 feedback --- source/reference/operator/query/where.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/reference/operator/query/where.txt b/source/reference/operator/query/where.txt index 7e995748e02..440111ec4bd 100644 --- a/source/reference/operator/query/where.txt +++ b/source/reference/operator/query/where.txt @@ -36,8 +36,7 @@ nested document, for instance, in an :query:`$elemMatch` query. Considerations ~~~~~~~~~~~~~~ -- Do not write to the database within the :query:`$where` - JavaScript function. +- Do not use global variables. - :query:`$where` evaluates JavaScript and cannot take advantage of indexes. Therefore, query performance improves