Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
mongodb version 2.2.3
OS:CentOS 5.4 release Final
*Location*: http://docs.mongodb.org/manual/tutorial/expire-data/
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
*Referrer*: http://docs.mongodb.org/manual/core/index-ttl/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: tutorial/expire-data
mongodb version 2.2.3 OS:CentOS 5.4 release Final *Location*: http://docs.mongodb.org/manual/tutorial/expire-data/ *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 *Referrer*: http://docs.mongodb.org/manual/core/index-ttl/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: tutorial/expire-data
Description
The docs said that
"You cannot create a TTL index on a field that already has an index.",
but I create a TTL index on a field that already has an index, and it worked,
the expired documents from the collection were removed automatically.
So, Why is there such a restriction?