This is a NoSql question (MongoDB). Platform/software is MongoDB/ IBMBluemix. Thanks.

Aug 17th, 2016
Studypool Tutor
Price: $10 USD

Tutor description

This is a NoSql question (MongoDB). Platform/software is MongoDB/ IBMBluemix. Thanks.

Word Count: 688
Showing Page: 1/4
Answer-----------------DefinitionDb.createcollection(name, options)Creates a new collection explicitly.Because mongodb creates a collection implicitly when the collection is first referenced in acommand, this method is used primarily for creating new capped collections. This is alsoused to pre-allocate space for an ordinary collection.The db.createcollection() method has the following prototype form:Db.createcollection(, { capped: ,Autoindexid: ,Size: ,Max: ,Storageengine: } )The db.createcollection() method has the following parameters:Parameter TypeDescriptionNameStringThe name of the collection to create.OptionsDocumentOptional. Configuration options for creating a cappedcollection or for preallocating space in a new collection.The options document creates a capped collection or preallocates space in a newordinary collection. The options document contains the following fields:FieldTypeDescriptionCappedBooleanOptional. To create a capped collection, specify true.If you specify true, you must also set a maximum sizein the size field.Optional. Specify false to disable the automaticc

Review from student

Studypool Student
" Thank you, Thank you, for top quality work, this is your guy!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1826 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors