Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories Data Federation
Created by Guest
Created on Nov 11, 2020

Online Archive

Hi Team - With regards to Atlas Data lake and using Online Archive customer request to be able to have (Time + Query) i.e. anything that is older than 60 days that match X query.
  • Guest
    Jun 22, 2021
    This can actually be done today using $expr, here's an example where the magic number is just the number of days in milliseconds { "archive": true, "$expr": { "$lte": [ "$bucket_end_date", { "$subtract": [ "$$NOW", 146880000000 ] } ] } }