1.

To get the current number of namespaces in the mongo shell, use ________________(a) db.system.namespaces.countc()(b) db.system.namespaces.count(*)(c) db.system.namespaces.count()(d) all of the mentionedI got this question during an interview for a job.My question is from Data Modeling Concepts in portion Data Models of MongoDB

Answer»

Correct choice is (c) db.system.namespaces.count()

EASY explanation: The limit on the number of namespaces DEPEND on the .ns SIZE.



Discussion

No Comment Found

Related InterviewSolutions