Chapter 2 - Bring it all together

db.movies.aggregate([{$match:{$and:[{“year”:{$gte:1990}},{“languages”:“English”}]}}]).itcount()

Is there any mistake in the above aggregation? Why is it taking so long to execute? server doesn’t respond at all, no errors either, cursor moves to the next line and continues to blink. Is this due to some connection issue?

Hey @Anupama_54080 this is what I get with your query:


I had to change the quotes to my locale to make it work.

I think it’s probably just a network/caching issue. Try running this first before running your query:
db.movies.find().count()

2 Likes