草庐IT

CollectionOptions

全部标签

logging - 如何使用 Spring Data 创建一个上限集合? - MongoDB

我正在做一个简单的项目。我正在使用SpringData和MongoDB。创建普通集合一切都很完美,但现在我必须注册信息,我的意思是日志记录功能。所以我在mongo文档中读到了这个:Cappedcollectionsprovideahigh-performancemeansforstoringloggingdocumentsinthedatabase.Insertingobjectsinanunindexedcappedcollectionwillbeclosetothespeedofloggingtoafilesystem.Additionally,withthebuilt-inFIF