Last-Modified date for collection

1,710 views
Skip to first unread message

pzol

unread,
Jan 2, 2010, 9:58:05 AM1/2/10
to mongodb-user
Is it somehow possible to get the date when a collection was modified
for the last time without running any queries?
I have a web page built from data from mongo and would like to be able
to respond that the content has not changed.

Eliot Horowitz

unread,
Jan 2, 2010, 10:12:57 AM1/2/10
to mongod...@googlegroups.com
No - we don't store any meta data like that right now.
The only generic option would be to query local.oplog.$main for mods
to a given collection.

> --
>
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>
>

pzol

unread,
Jan 2, 2010, 10:14:36 AM1/2/10
to mongodb-user
Ok, thanks for the reply

Ronak Agrawal

unread,
Mar 11, 2015, 4:08:10 AM3/11/15
to mongod...@googlegroups.com
Is MongoDB storing this info now ?

Asya Kamsky

unread,
Mar 12, 2015, 1:19:09 AM3/12/15
to mongodb-user

No.

--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
 
For other MongoDB technical support options, see: http://www.mongodb.org/about/support/.
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.

To post to this group, send email to mongod...@googlegroups.com.

s.molinari

unread,
Mar 12, 2015, 4:17:56 AM3/12/15
to mongod...@googlegroups.com
I don't get it. If Mongo would store it, it would have to be retrieved in a query anyway, right? So the original question sort of confuses me.

Scott
Reply all
Reply to author
Forward
0 new messages