Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Mongo: Performance and Troubleshooting
Search
gamechanger
August 21, 2012
Technology
340
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Mongo: Performance and Troubleshooting
gamechanger
August 21, 2012
More Decks by gamechanger
See All by gamechanger
Concurrency + Mongo
gamechanger
0
120
Mongo and Ops
gamechanger
0
130
Other Decks in Technology
See All in Technology
SAENM ~Jupyterで残すPoCの試行錯誤、未来の自分と仲間を助ける記録!~
terapyon
0
170
DevelopersIO 2026 Tokyo 現時点の衛星通信サービスの現状を整理してみる
maroon1st
0
130
Codex を使った障害対応机上演習の実際
orgachem
PRO
0
250
Classmethod Company Deck
satoshi7
1
800
Turning Repos into the Product Second Brain with an LLM Wiki
linedevth
0
130
AI駆動開発におけるハーネスエンジニアリングの勘所
tsukuboshi
1
410
ソフトウェア ファクトリー - 再現性のあるソフトウェアの工場づくり / Software factory
iktakahiro
7
5.3k
僕のハーネスを紹介します
watany
5
1.3k
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
230
S3 Filesで挑む! 八戸せんべい汁の食べ頃問題
usanchuu
0
140
古い指輪から広がった JAVA コミュニティ とのつながり
yamad
0
140
10年後、Engineering 行為を剥奪されるとして、わたしたちは、どう、何を創ればいいだろうか。 / If Engineering Is Taken Away in 10 Years, How and What Should We Create?
bitkey
PRO
1
220
Featured
See All Featured
A Tale of Four Properties
chriscoyier
163
24k
Balancing Empowerment & Direction
lara
6
1.3k
How to Talk to Developers About Accessibility
jct
2
590
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
950
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
580
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
590
Visualization
eitanlees
153
17k
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
750
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
540
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
430
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
270
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
580
Transcript
Performance & Troubleshooting @kirilnyc @gcsports
• How MongoDB works (layman's version) • Common failure cases
• Best practices
Fundamentals • OS Pager, LRU cache ejection • Working Set
and implications • Documents on disk
Virtual Memory LRU
Working Set
Documents on Disk
Failing • Underestimating Working Set • Ill-Fitting Use Cases •
Schema Design Mistakes
Oops, Overload
Estimating Working Set • Indexes • Core operational data (user
records, etc) • Secondary records (logs, sessions) • Long tail data (historical, related) • Scans*
I Know, Let's use Mongo!
Sub-optimal Use Cases • Session storage • Big fragmented collections
• Giant working sets + performance demands • Clearly tabular data
Simulated Joins!!!
Let's NoSQL! • Look for the largest granularity that works
• Eschew lookup collections • Prefer containment over reference • Query sparingly
Best Practices • Denormalize heavily • Do Capacity Planning •
Live in your slow query logs • Watch the numbers
Documents No thanks. Yes please.
Capacity Planning
Logs *yawn* Ruh-roh...
Numbers • Query load (subjective, learn yours) • Lock percentage
(< 50%) • Queues (single digits) • Page faults (single digits)
@kirilnyc CTO, GameChanger Media http://GC.io/about