MongoDB collections explained

Published: 22 July 2024
on channel: Bro Code
3,800
164

#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


Watch video MongoDB collections explained online, duration hours minute second in high quality that is uploaded to the channel Bro Code 22 July 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 3,800 times and liked it 164 visitors.