Clustered Collections makes Mongo faster but there is a cost @hnasr
Clustered Collections makes Mongo faster but there is a cost  @hnasr
Uploaded May 2023 | Updated November 2026, 3 days ago
Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
database.husseinnasser.com

In version 5.3, MongoDB introduced a feature called clustered collection which stores documents in the _id index as oppose to the hidden wiredTiger hidden index. This eliminates an entire b+tree seek for reads using the _id index and also removes the additional write to the hidden index speeding both reads and writes.

However like we know in software engineering, everything has a cost. This feature does come with a few. In this video I discuss the following

0:00 Intro
1:00 How Original Collections Work
6:50 How Clustered Collections Work
10:00 Benefits
17:00 Limitations

Fundamentals of Backend Engineering Design patterns udemy course (link redirects to udemy with coupon)
backend.husseinnasser.com

Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)
network.husseinnasser.com


Follow me on Medium
medium.com/@hnasr/membership


Introduction to NGINX (link redirects to udemy with coupon)
nginx.husseinnasser.com

Python on the Backend (link redirects to udemy with coupon)
python.husseinnasser.com

Become a Member on YouTube
youtube.com/channel/UC_ML5xP23TOWKUcc-oAE_Eg/join

Buy me a coffee if you liked this
buymeacoffee.com/hnasr

Arabic Software Engineering Channel
youtube.com/channel/UChWZsjdoRvZ0T9QWZOD6UpA

🔥 Members Only Content
youtube.com/playlist?list=UUMO_ML5xP23TOWKUcc-oAE_Eg



🏭 Backend Engineering Videos in Order
backend.husseinnasser.com

💾 Database Engineering Videos
youtube.com/playlist?list=PLQnljOFTspQXjD0HOzN7P2tgzu7scWpl2

🎙️Listen to the Backend Engineering Podcast
husseinnasser.com/podcast

Gears and tools used on the Channel (affiliates)

🖼️ Slides and Thumbnail Design
Canva
partner.canva.com/c/2766475/647168/10068


Stay Awesome,
Hussein
Clustered Collections makes Mongo faster but there is a costSix stages of a good software engineerCloudflares 150ms global cache purge | Deep DiveWhy Cloudflare Ditched NGINXPrimary Key vs Secondary Key - What you probably didnt knowPostgreSQL Internal Architecture ExplainedNode and the Thread PoolThey made Kafka 80% faster by switching file systemsGraceful shutdown is needed to scale backendsSync or Async?h1 Graceful ShutdownSpin an HTTP/3 Reverse Proxy (using mitmproxy)
Hussein Nasser |

Clustered Collections makes Mongo faster but there is a cost

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER