{
"ts" : ISODate("2013-12-05T10:20:21.549Z"),
"op" : "query",
"ns" : "mydb.system.indexes",
"query" : {
"expireAfterSeconds" : {
"$exists" : true
}
},
"ntoreturn" : 0,
"ntoskip" : 0,
"nscanned" : 247846,
"keyUpdates" : 0,
"numYield" : 0,
"lockStats" : {
"timeLockedMicros" : {
"r" : NumberLong(188687),
"w" : NumberLong(0)
},
"timeAcquiringMicros" : {
"r" : NumberLong(2),
"w" : NumberLong(6)
}
},
"nreturned" : 0,
"responseLength" : 20,
"millis" : 188,
"client" : "0.0.0.0",
"user" : ""
}
I am not using MMS. The only impact I can see is that those queries are the most slow queries over all. The database is slow in general and I am currently refactoring the structure to increase performance. I drastically reduced the amount of collections from 247,846 to 20 because it had a lot of downsides (slow backups, slow creation of collection creation/deletion, maximum number of namespaces, ...). The system is much faster now and the issue does not remain for me. Still I think this is a general problem for others dealing with a lot of collection and there should be a way to disable ttl.
--setParameter ttlMonitorEnabled=false
db.adminCommand({setParameter:1, ttlMonitorEnabled:true})
Thank you Stephen and Alan! I will consider using MMS, even though I expect a lot of privacy issues we usually face with such a service here in Germany.