1,createCollection

脚本:db.createCollection("Sp_HtmlContent080415", {capped:true, size:20000000000})

C#:

public void CreateColllection(string collectionName)
        {
         var options = CollectionOptions
          .SetCapped(true)
          .SetMaxSize(AppConfig.ConfigInfo.Sp_HtmlContentCollectionFixSize);
            MongoHelper.GetMongo_DB2().CreateCollection(collectionName, options);
        }

相关文章:

  • 2021-07-12
  • 2021-05-22
  • 2022-12-23
  • 2021-12-08
  • 2021-08-05
  • 2021-08-19
  • 2021-06-03
  • 2023-03-30
猜你喜欢
  • 2021-11-07
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2022-02-06
  • 2022-12-23
  • 2022-02-20
相关资源
相似解决方案