db.createCollection("weather", {
timeseries: {
timeField: "timestamp",
metaField: "sensor_id",
granularity: “hours”
},
expireAfterSeconds: 86400
});
{
"$setWindowFields": {
"partitionBy": "$game",
"sortBy": { "score":-1},
"output": {
"userRank": {
"$rank": {}
}
}
}
}
Learn More →
Learn More →
Learn More →
You can use our Online Archive - configure a policy, this is coming soon. Also, you can use federated query to combine and work with data across live operational Atlas clusters and cold storage.