一、基于条件的查询

db.getCollection('monitor_log')
   .find({"requestUrl" : /app\/v1\/findcards\/cn/,  "loginUser" : "xxx" ,"cTimeDate": {"$gt" : "2017-06-27" , "$lt" : "2018-06-28",} })
   .sort(timestampField: -1)

二、整库删除

  drop Connection

三、新建库

 create Connection

四、创建索引

 {

   "timestamp":1 (1升序;-1倒序)

 }

五、数据删除

 Remove ALL Doucuments

 .sort({timestampField:-1})

相关文章:

  • 2021-12-23
  • 2022-01-05
  • 2021-07-30
猜你喜欢
  • 2021-08-06
  • 2022-12-23
  • 2021-09-12
  • 2022-01-10
  • 2021-11-30
相关资源
相似解决方案