I am analyzing a MongoDB data source to check its quality. I am wondering if each document contains a time attribute: so I used two commands
> db.droppay.find().count(); 291822 > db.droppay.find({time: {$exists : true}}).count() 293525
How can I have more elements with a given field than elements contained in an entire collection? Something went wrong? I can not find the error. If necessary, I can publish to you the expected structure of the document.
Mongo Shell version is 1.8.3. Mongo Db version is 1.8.3.
Thanks in advance
This is the expected document record structure:
{ "_id" : ObjectId("4e6729cc96babe974c710611"), "action" : "send", "event" : "sent", "job_id" : "50a1b7ac-7482-4ad6-ba7d-853249d6a123", "result_code" : "0", "sender" : "", "service" : "webcontents", "service_name" : "webcontents", "tariff" : "0", "time" : "2011-09-07 10:22:35", "timestamp" : "1315383755", "trace_id" : "372", "ts" : "2011-09-07 09:28:42" }
source share