Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering MongoDB 4.x

You're reading from   Mastering MongoDB 4.x Expert techniques to run high-volume and fault-tolerant database solutions using MongoDB 4.x

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781789617870
Length 394 pages
Edition 2nd Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Alex Giamas Alex Giamas
Author Profile Icon Alex Giamas
Alex Giamas
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Section 1: Basic MongoDB – Design Goals and Architecture FREE CHAPTER
2. MongoDB – A Database for Modern Web 3. Schema Design and Data Modeling 4. Section 2: Querying Effectively
5. MongoDB CRUD Operations 6. Advanced Querying 7. Multi-Document ACID Transactions 8. Aggregation 9. Indexing 10. Section 3: Administration and Data Management
11. Monitoring, Backup, and Security 12. Storage Engines 13. MongoDB Tooling 14. Harnessing Big Data with MongoDB 15. Section 4: Scaling and High Availability
16. Replication 17. Sharding 18. Fault Tolerance and High Availability 19. Other Books You May Enjoy

Summary

In this chapter, we dived deep into the aggregation framework. We discussed why and when we should use aggregation as opposed to simply using MapReduce or querying the database. We went through the vast array of options and functionalities for aggregation.

We discussed the aggregation stages and the various operators, such as Boolean operators, comparison operators, set operators, array operators, date operators, string operators, expression arithmetic operators, aggregation accumulators, conditional expressions, and variables, and the literal parsing data type operators.

Using the Ethereum use case, we went through aggregation with working code and learned how to approach an engineering problem to solve it.

Finally, we learned about the limitation that the aggregation framework currently has and when to avoid it.

In the next chapter, we will move on to the topic of indexing...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime