MongoDB collections explained @BroCodez
MongoDB collections explained  @BroCodez
Uploaded July 2024 | Updated November 2026, 21 hours ago
#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
MongoDB collections explainedLearn C for loops in 6 minutes! 🔂
Bro Code |

MongoDB collections explained

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER