MongoDB collections explained

Published: 22 July 2024
on channel: Bro Code
6,133
270

#mongoDB #course #tutorial

db.createCollection("teachers", {capped : true , size : 1000 * 1024, max : 100}, {autoIndexId:false})

capped = Enables a capped collection. Oldest entries are overwritten when the collection reaches its max size.
size = specifies the maximum size in bytes (x * y bytes)
max = maximum number of documents allowed
autoIndexId = Creates an index on _id field


On this page of the site you can watch the video online MongoDB collections explained with a duration of hours minute second in good quality, which was uploaded by the user Bro Code 22 July 2024, share the link with friends and acquaintances, this video has already been watched 6,133 times on youtube and it was liked by 270 viewers. Enjoy your viewing!