MongoDB集合中的文档具有以下模式(仅显示相关字段):
{ "TTLinSeconds" : 1800, "lastUpdatedTimestamp" : ISODate("...") }
我需要删除current timestamp大于lastUpdatedTimestamp加上TTLinSeconds字段中存储的值的所有文档.提前感谢您的建议.
current timestamp
lastUpdatedTimestamp
TTLinSeconds
mongodb mongo-shell mongodb-query
mongo-shell ×1
mongodb ×1
mongodb-query ×1