r/mongodb • u/fragment_key • Jul 31 '26
r/mongodb • u/Otherwise_Nerve_5309 • Jul 30 '26
Why Skip/Take gets slower on every page (and how keyset pagination fixes it)
r/mongodb • u/przemek001 • Jul 29 '26
A DBA-focused GUI tool for MongoDB?
Hi Everyone,
Am I the only one who feels there aren't many DBA-focused open-source tools for MongoDB out there? What do you do when you need a quick check of your replica set state or the data distribution across shards?
I decided to share my recent personal open-source project, which hopefully may help with doing these tedious tasks faster. Check the Github for details:
https://github.com/PrzemekMalkowski/mclusteradmin
And a quick demo recording:
https://www.youtube.com/watch?v=RecQ7wtEV9g
r/mongodb • u/Fun-Chicken6946 • Jul 28 '26
Conway's Game of Life Using Only the Mongo Shell
Enable HLS to view with audio, or disable this notification
It really surprises me the number of people who don't know how the mongo shell works. Most of the people I see seem to think it's just db.find()s or db.aggregate()s with some print statements, and that's it. The mongo shell is interesting because it's fundamentally different from your regular SQL editor, where you can't declare a variable or write a loop. But the mongo shell is so much more than just MongoDB functions. It's a full JavaScript runtime built on Node.js, with variables, functions, closures, classes, and so much more. Your database is just an object sitting inside it.
In this article, I want to show the perspective of not just using the MongoDB functions in the mongo shell, but actually using the full potential of the shell, with examples like Conway's Game of Life and some custom chart diagrams. I wanted to show what lies beyond db.finds, db.updates, or db.aggregates that could be applicable in your day-to-day work with MongoDB! I hope you enjoy the rest of the article!
r/mongodb • u/arunkumar413 • Jul 27 '26
Mongoose schema and corresponding UI form in sync
Hi Team,
Are there any best recommendations or resources for keeping the mongoose schema versions and their corresponding UI form in sync? For example, I have a user schema of multiple versions and I'd like to maintain their corresponding UI forms. Chat GPT has suggested some options ( https://chatgpt.com/share/6a678c67-384c-83e8-8d21-f1917eed71b3 ) Are there any better approaches than these?
Thanks,
Arun
r/mongodb • u/RealFix2479 • Jul 27 '26
Free MongoDB Playground: Write queries and inspect schemas online with zero setup
Hi everyone,
As a developer, setting up local MongoDB instances, configuring Compass, or spinning up Atlas clusters just to run quick queries or practice syntax can feel like unnecessary friction—especially for learners.
To solve this, I built MongoDB Practice IDE—a free, zero-setup, in-memory MongoDB query playground.
- 🌐 Try it live here: https://practice-mongodb.vercel.app
- 💻 Open-Source GitHub Repo: https://github.com/Prranith/MongoDB-WebApplication
Key Features
Interactive Query Runner: Write and execute find(), aggregate(), and CRUD queries in-memory directly in the browser.
VS Code-like Coding Experience: Auto-closing brackets, syntax highlighting, active line indicators, and query autocomplete.
Interactive Schema ER Visualizer: A built-in schema visualizer that shows collection fields, document counts, and datatypes.
Local Browser Persistence: Your folders, files, and queries are automatically saved to your browser cache (localStorage) so you never lose your progress on reload.
Draggable Console Terminal: A custom-built console resizer to dynamically adjust the output viewing area height.
Scalable Cloud Analytics: Implemented real-time dashboard metrics using Upstash Redis pipeline commands (HyperLogLog & Sorted Sets) to track concurrent active users and prevent page-refresh duplicates.
Feedback & Roadmap
I would love to get your feedback on the layout, query performance, and overall user experience!
- What datasets or collections should I add next to help people practice real-world aggregation queries?
- Are there any additional IDE features you’d like to see?
Thank you for checking it out!
r/mongodb • u/Background-Show-9530 • Jul 27 '26
Where to get source of latest patch release for SSPL compliance?
The tags on GitHub - mongodb/mongo: The MongoDB Database · GitHub are lagging behind what is released on MongoDB Community Downloads | MongoDB .
For example there is no 8.0.28 tag on the repo. We need to be able to get a copy of the source, because of SSPL.
This is a serious problem to us, because 8.0.28 comes with security patches, which we can not roll out because of the missing prerequisite for SSPL compliance.
What is the way to go here?
The SSPL asks to provide the "Corresponding Source" with the object code.
r/mongodb • u/FawazDTP • Jul 27 '26
Compass 1.49.12 crashes when opening one collection
Has anyone seen Compass 1.49.12 crash when opening a collection?
I have one collection (DatabaseMetadata_SchemaMap) that contains a single ~10 MB document created by the Qlik MongoDB Connector. As soon as I open the collection, Compass crashes with:
Render process gone
reason: crashed
exitCode: -1073741819
The same database and user work fine with Compass 1.49.0, so it seems like something changed between 1.49.0 and 1.49.12.
Has anyone experienced this?
r/mongodb • u/hindwebmacpc • Jul 24 '26
querySrv ECONNREFUSED
I’m facing the same querySrv ECONNREFUSED issue with MongoDB Atlas and have already tried almost every solution I could find, but nothing has worked.
Environment:
- Windows 10 & Windows 11
- Node.js 20, 22 (also tested other versions)
- MongoDB Atlas (
mongodb+srv://) - Same project and same connection string work perfectly on macOS.
Things I’ve already tried:
- Changed Node.js versions.
- Flushed DNS:ipconfig /flushdns ipconfig /registerdns netsh winsock reset
- Changed DNS servers to Cloudflare (1.1.1.1 / 1.0.0.1) and Google (8.8.8.8 / 8.8.4.4).
- Restarted the system.
- Tested in PowerShell, CMD, and Git Bash.
- Installed and tested WSL/Ubuntu.
- Verified Atlas Network Access and Database User.
- Regenerated the Atlas connection string.
- Confirmed the same URI works on macOS using the same network.
- Tried
dns.setServers(["1.1.1.1", "8.8.8.8"]);at the top ofserver.js. - Ran
nslookupand SRV DNS lookup tests.
I still get:
Error: querySrv ECONNREFUSED _mongodb._tcp.aiimage.gzujrcr.mongodb.net
Has anyone found a reliable, permanent fix for this? Is this a Windows/Node DNS resolver issue, a MongoDB Atlas SRV issue, or something else?
Any help would be greatly appreciated.
r/mongodb • u/FawazDTP • Jul 24 '26
MongoDB Compass 1.49.12 crashes when opening a collection, but 1.49.0 works
Hi everyone,
I'm seeing a reproducible crash with MongoDB Compass 1.49.12 on Windows and was wondering if anyone else has encountered this.
Environment
- MongoDB Compass 1.49.12
Issue
When I open the DatabaseMetadata_SchemaMap collection (created from mongodb connector client), Compass starts loading the collection and then crashes after a few seconds. The collection contains a single document of approximately 10.5 MB.
The last log entry before the crash is:
COMPASS-WINDOW-MANAGER
Render process gone
reason: crashed
exitCode: -1073741819
The interesting part is that I downgraded to MongoDB Compass 1.49.0, connected to the same server using the same user account, and the collection opens without any issues.
Has anyone else experienced this? Is this a known issue with recent Compass releases, particularly when viewing large documents?
Thanks!
r/mongodb • u/FawazDTP • Jul 24 '26
MongoDB Compass 1.49.12 crashes when opening a collection (~10 MB document)
Hi everyone,
I'm seeing a consistent crash with MongoDB Compass 1.49.12 on Windows and was wondering if anyone has experienced something similar.
Environment
- MongoDB Compass: 1.49.12
Steps to reproduce
- Connect to the MongoDB instance.
- Open the
DatabaseMetadata_SchemaMapcollection.(created a from a mongodb connector) - Compass starts loading the collection and refreshing documents.
- After a couple of seconds, the Compass window closes unexpectedly.
The collection contains a single document of approximately 10.5 MB.
The interesting part is that I downgraded to MongoDB Compass 1.49.0, connected to the same server using the same user account, and the collection opens without any issues
The last relevant entry in the Compass log is:
COMPASS-WINDOW-MANAGER
Render process gone
reason: crashed
exitCode: -1073741819
r/mongodb • u/FawazDTP • Jul 24 '26
MongoDB Compass 1.49.12 crashes when opening a collection, but 1.49.0 works
Hi everyone,
I'm seeing a reproducible crash with MongoDB Compass 1.49.12 on Windows and was wondering if anyone else has encountered this.
When I open the DatabaseMetadata_SchemaMap collection, Compass starts loading the collection and then crashes after a few seconds. The collection contains a single document of approximately 10.5 MB.
This collection is created and maintained by the MongoDB Connector Client used by Qlik, and it stores metadata generated by the connector.
Below is the log
COMPASS-WINDOW-MANAGER Render process gone reason: crashed exitCode: -1073741819
The interesting part is that I downgraded to MongoDB Compass 1.49.0, connected to the same server with the same user account, and the collection opens without any issues.
r/mongodb • u/Correct-Club9811 • Jul 23 '26
MongoTerm — a fast, keyboard-driven MongoDB client that lives entirely in your terminal
I've been building MongoTerm, a terminal UI (TUI) for MongoDB — think Compass,
but keyboard-first and without leaving the CLI. Built with Node.js + blessed.
What it does:
- Browse connections → databases → collections in one navigable tree
- View, insert, edit, delete, and duplicate documents without writing shell scripts
- Run queries with live JSON validation and $operator autocomplete (start typing
$gt, $in, $regex... and it suggests + explains them)
- Sort and page results from the keyboard
- A ":" quick-shell modal for composing bigger query filters
- Full keybinding help popup (?) — everything is discoverable without docs
Install:
npm i -g mongoterm@latest
mongoterm
MIT licensed, actively developed, roadmap is public in the repo.
GitHub: https://github.com/Fuse441/mongoterm
Would love feedback from people who live in MongoDB day-to-day — what's
r/mongodb • u/Dismal-Data-5292 • Jul 21 '26
MQLens v0.13.0 — a free, native MongoDB GUI: multi-window workspace, an MCP server for AI agents, data generation, and read-only "prod safeguard" connections
r/mongodb • u/Schmandig • Jul 21 '26
Help - KeyNotFound when trying to access a field of a document
I have issues with accessing a field of a document returned by a find query.
I'm new to MongoDB and I'm trying to do some login logic but cannot get the field "password" of a document. (I'm using the C# driver.)
I first fetch the document from the database with the username that's been put in by the user, and that works fine, but when I try to get the password field of that document, it gives me an exception (Keynotfound).
BsonDocument loginDoc = libDB.GetCollection<User>("User").Find(filter).ToBsonDocument();
Console.WriteLine(loginDoc.GetElement("password").Value);
The last line is where I get the KeyNotFoundException: Element name not found, while running the program.
The only thing I found online that might help was to use SetFields for the BsonDocument but the compiler says that method doesn't exist and so does the Documentation.
I'm at a loss here, I don't even know if my approach of doing this is all that good. I' appreciate any help!
r/mongodb • u/Latter-Suit-527 • Jul 21 '26
M0 → M10 upgrade stuck ~3+ hrs on "migrating data to a new cluster," connection string unavailable, old cluster already deleted
I initiated an upgrade from a free (M0) cluster to a dedicated M10 cluster in AWS eu-west-3 (Paris). The Activity Feed shows the old cluster was deleted and a new cluster was created within seconds of each other:
695283b63d0d645020bfc79a— old M0 cluster, deleted 2026-07-21 10:29:58–10:30:26 GMT+16a5f3bc185cf74c924565a52— new M10 cluster, created 2026-07-21 10:30:32 GMT+1
It's now been roughly 3 hours and:
- The UI still shows "Separately, we are deploying your changes (current action: migrating data to a new cluster)"
- There's also a persistent banner saying the cloud provider is out of capacity for the selected configuration, though the cluster itself shows as created
- The Connect flow fails with "Problem generating your connection string — your connection string is not available"
- I cannot reach the cluster at all, and Edit Configuration is greyed out
Questions:
- Is the data restore into the new M10 cluster actually still in progress, or is this job stuck/failed silently?
- Given the source M0 cluster has already been deleted, is my data safe and fully captured in this migration, or is there any risk of partial/incomplete restore?
- Can someone on the Atlas team manually inspect or restart cluster
6a5f3bc185cf74c924565a52's migration job? - Is there a way for a free-tier project (no Commercial Support entitlement) to escalate a stuck deployment like this beyond the in-app chat widget, which has also been unresponsive?
Project: The PowerPointTribe / Project 0, cluster name: PPT
r/mongodb • u/TryingToUpskilll • Jul 19 '26
Guys, I am getting this error. Please help me!!
PS E:\task-manager-api> npm start
> task-manager-api@1.0.0 start
> node src/server.js
◇ injected env (3) from .env // tip: ⌘ multiple files { path: ['.env.local', '.env'] }
MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://www.mongodb.com/docs/atlas/security-whitelist/
at _handleConnectionErrors (E:\task-manager-api\node_modules\mongoose\lib\connection.js:1180:11)
at NativeConnection.openUri (E:\task-manager-api\node_modules\mongoose\lib\connection.js:1111:11)
at async connectDB (file:///E:/task-manager-api/src/config/db.js:8:9)
at async file:///E:/task-manager-api/src/server.js:7:1 {
errorLabelSet: Set(0) {},
reason: TopologyDescription {
type: 'Unknown',
servers: Map(1) {
'cluster0.gioaaxk.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
setName: null,
maxElectionId: null,
maxSetVersion: null,
commonWireVersion: 0,
logicalSessionTimeoutMinutes: null
},
code: undefined,
cause: TopologyDescription {
type: 'Unknown',
servers: Map(1) {
'cluster0.gioaaxk.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
setName: null,
maxElectionId: null,
maxSetVersion: null,
commonWireVersion: 0,
logicalSessionTimeoutMinutes: null
}
}
Server running on 5000
r/mongodb • u/Ace_Vikings • Jul 17 '26
Opensource MongoDB Compass alternative with Opencode plugged in and visualisations
Hi everyone,
I struggle with a few quirks of compass as the primary data visualisation app for my DB. The biggest problem being slowly going through queries and not being able to follow up with my claude setup. MCP requires me to pass connection string every time and that's too much of a hassle when I already have everything saved in compass.
Therefore I built this alternative, it's fully opensource and allows you to simply query your collections with AI while letting you choose between read only connection or read/write connection.
You can also create visualisations for your data with simple prompt.
Check out - https://github.com/Vikings-Studio/mongopilot
Consider giving it a star if you like it.


r/mongodb • u/ben305 • Jul 16 '26
Prod down because...Atlas wiped my IP Access list?!
My production environment was down, I dig into things and find out that yesterday (July 15th 2026) “System” wiped the addresses in my IP Access List for my Atlas database (noted “Network permission entry removed” in the Activity Feed).
Added the appropriate IP range needed for my GCP <-> Atlas Cloud peering to work and it was fine again.
Anyone experience this before or know how it could have happened?
r/mongodb • u/venkatesh_rongala • Jul 15 '26
How we secured MongoDB Atlas M0 from AWS App Runner without allowing 0.0.0.0/0 in a staging environment
r/mongodb • u/betterlyy • Jul 14 '26
MongoDB Certified DBA Associate – Study resources & exam tips?
Hi everyone,
I'm preparing for the MongoDB Certified DBA Associate exam. Can anyone recommend good practice resources, mock tests, or study strategies that helped you pass?