#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 explained длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Bro Code 22 Июль 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 6,133 раз и оно понравилось 270 зрителям. Приятного просмотра!