I am new to MongoDB, I have started using it since I have a requirement where there are around 300 Million documents and have to perform some queries on them. So I have created a collection where the structure resembles:
LogsCollection:
{ LogID, LogName, Version, Serial, Year, Month, Day, Feature { FeatureID, Name, Hour, Minute, second, millisecond }}
I have inserted 300 Million documents into the collection using C# drvier. So each document is a BSONDocument type.
Now I am trying to query the number of documents with the Year - 2012. The query time is more than 15 mins. Is this the expected behavior for the 300 Million documents I have inserted or Is mongoDB expected to give better performance?
I am also doubting whether the structure I have created in the collection is correct. Can anyone guide me with this?
The queries are basically based on the Date or time and FeatureID.