MongoDB collections explained

Опубликовано: 22 Июль 2024
на канале: 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


Смотрите видео MongoDB collections explained онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Bro Code 22 Июль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,800 раз и оно понравилось 164 людям.