1.

Point out the correct statement.(a) A limit() value of 0 (i.e. .limit(0)) is equivalent to setting no limit(b) The behavior of limit() is undefined for values less than -231 and greater than 231(c) You can use the ulimit command at the system prompt to check system limits(d) All of the mentionedThis question was posed to me in class test.My doubt stems from Database Profiler in division Production Checklist, Security Concepts and Network Security of MongoDB

Answer»

Correct answer is (d) All of the mentioned

Easy explanation: USE limit() to maximize performance and PREVENT MongoDB from returning more results than REQUIRED for PROCESSING.



Discussion

No Comment Found

Related InterviewSolutions