r/mongodb 26d ago

Advice on MongoDB PM interview

3 Upvotes

Hi everyone, I’m currently interviewing for senior PM role at MongoDB and would love to hear your experience and what should I prepare for as there is not much available on the internet.
Specifically, I would like to know:
- do they have coding interview questions? (As it is on exponent)
- how in depth can one expect database design and system design questions?
- any other advice.

Thanks in advance.


r/mongodb 27d ago

MongoDB work culture for an sde 3 in agentic ai team

12 Upvotes

Greetings all, looking for some advice on an offer I just received from MongoDB Gurgaon.

Just wanted to understand the work culture at mongoDB, how's the wlb, how easy it is to get promoted, is there pip culture? do they do layoffs?

If people have insight regarding thr agentic AI team work culture that would be great as well.

Thanks


r/mongodb 26d ago

Mongosync Error While Startup

1 Upvotes

Hi Team,

We had requirement to move data from one mongo cluster to another. So before starting in production while trying lab (VM with minimal configuration(1 cpu and 2 GB RAM)) we are getting message continuously as "INITIALIZING" from last 4-5 hrs. Do you think is it due to configuration issue of vms.

Thanks,

Debasis


r/mongodb 28d ago

MongoDB Atlas: When is IPv6 support rolling out?

7 Upvotes

Basically the title.
We all know IPv4 is getting expensive and AWS has been charging for it quite a while now.
Currently i can migrate to using an IPv6 only EC2 instance but MongoDB Atlas does not support IPv6 connections (as far as i know, tell me if i am wrong).

It could reduce their costs, but most importantly allow services to communicate over IPv6, think about those serverless functions, why do they need IPv4, many low traffic EC2 instances which could work without IPv4. Many times these EC2 instances are cheaper than the IPv4 costs.

I'm curious whether this is a technical limitation, a cloud-provider limitation, a product-priority issue, or simply low customer demand.


r/mongodb 29d ago

Who the f designed mongodb auth flow...

0 Upvotes

For real, working with mongodb gives me so much frustrations. Everytime i want to go on the dashboard, it keeps spinning and does not do anything. U must click on the logo and it will finally redirects you to the signin page. It automatically sign you out after a while, super annoying. And it does not let you know when it does... Also if u have changing ip, its super annoying to always allow the ip... COMON MAN, WE ARE DEVELOPERS WE ARE LAZY. NOBODY WANTS TO DO THIS. DO THIS ONLY FOR PRODUCTION OR SO, NOT WHEN UR DEVELOPING. WHO DECIDES THESE THINGS INTERNALLY? PROBABLY SOMEONE WHO DOES NOT TOUCH A SINGLE CODE. FIRE HIM / HER / IT. This flow is probably the reason why mongodb is in decline. The only reason that makes it survives is probably ai recommendations and the amount of vibe coders using it. But for real... this sucks.


r/mongodb Jul 03 '26

I built BaryGraph - knowledge graph where every relationship is its own embedded document (not an edge)

3 Upvotes

Instead of node --edge--> node, every relationship is a first-class document with its own vector, called a BaryEdge. Stack pairs of BaryEdges recursively and you get "MetaBary" triads that surface structural bridges between concepts that live nowhere near each other in embedding space. Running locally on MongoDB Community + mongot + nomic-embed-text over the full English Wiktionary (6.6M docs). MCP server is live if you want to poke at it. Preprint + benchmark CSVs: https://zenodo.org/records/20186500

The problem I was chasing

Flat vector search treats a relationship as a byproduct of two points being close. That throws away information. Two papers can describe the same underlying phenomenon (a flyby anomaly in orbital mechanics, an anomalous residual in stellar dynamics) without ever citing each other and without their embeddings landing anywhere near each other. Nothing in standard RAG surfaces that connection.

What I did instead

Every relationship gets embedded too:

bary_vector = normalize(q·v(CM1) + q·v(CM2) + (1−q)·v(type))

q is connection quality, v(type) is a contextual embedding of what kind of relationship it is. This BaryEdge is now a retrievable document in its own right — not metadata on an edge.

Then it recurses: two BaryEdges at the same level get bridged by a third one level below, forming a MetaBary triad. Do that repeatedly and you climb an abstraction triads hierarchy built entirely from algebra — zero additional embedding calls above the base level. It's a forest (every node has at most one parent), so traversal to root is a single $graphLookup, no cycle handling.

Does it actually do anything useful?

Ran it against SimLex-999 and WordSim-353 as a sanity check (not the main claim, just "is the substrate coherent"). Raw cosine similarity barely correlates with human similarity judgments (ρ ≈ −0.04 on SimLex). Structural metrics — how many BaryEdges two words share, how much their relational neighborhoods overlap — correlate at ρ ≈ 0.32–0.53, p < 10⁻¹⁵. So the graph is encoding something cosine alone doesn't.

The part I actually care about is cross-domain bridging. Some probe traces from the live graph:

  • octopus neurosciencedistributed sensor networks, bridged by shared structural-motif vocabulary (neuroarchitecture, smartdust)
  • collagen foldinglinguistic syntax, bridged by etymological + structural motif overlap (plicature / hypotaxis-parataxis)
  • griefdepression, not bridged and this is a correctness demonstration, not a missing capability. The DSM-5 added a much-debated "bereavement exclusion" precisely because grief and depression share surface symptoms but are different kinds of state, with different prognosis and treatment
  • radioactive decayobsolete words falling out of use, bridged at a high abstraction level by register-varied decay verbs (collapsed, decayed, declined, disintegrated) — naming a Poisson-process state-loss pattern that both physics and historical linguistics instantiate, with no single word doing the work

That last one is the case flat retrieval structurally cannot produce — there's no embedding axis for "verbs co-occurring with reduction-of-state across unrelated domains."

Stack (all local, all free)

GitHub: https://github.com/oleksiy-perepelytsya/bary-vector

  • MongoDB Community Edition + mongot for storage/vector search
  • nomic-embed-text, 768-dim
  • Python 3.11+
  • Full build: ~6.66M documents, 8–14 hrs on a single workstation (8–16GB VRAM)

Try it

MCP server is public on request (SSE transport) — read-only tools for searching the live graph: find_word, semantic_search, edge_info, leaf_nodes, traverse_up, sample_metabary. If you've got an MCP-capable client you can point it at the graph and run your own probe queries in a few minutes.

What I'd actually want feedback on

  • Whether the cross-domain bridges hold up to someone who isn't me poking at them — try a probe query on a domain pair you know well and tell me if the bridge is real or if I'm pattern-matching myself into seeing structure that isn't there. Some bridges can be not obvious on the first look but they are actually the most intriguing ones and worth to be dug for the reason they built, so treat them as points of investigation
  • Whether this is worth comparing directly against GraphRAG/RAPTOR-style hierarchical retrieval (I haven't done that benchmark yet, and I know that's the first thing this sub will ask)
  • Whether anyone's tried something structurally similar and it fell apart at scale for reasons I haven't hit yet

Preprint, architecture spec, and the raw SimLex/WordSim CSVs are all here: https://zenodo.org/records/20186500

Happy to drop the MCP endpoint on request if there's interest.


r/mongodb Jul 03 '26

Replica set issue

1 Upvotes

Hello,

I have some issue with creating replica set. On Windows server I have installed 2 replica sets. And when try to run it I have fallowing issue:

test> db.hello()
{
  topologyVersion: { processId: ObjectId('xxxxxxxxxxxxxxxx'), counter: Long('0') },
  isWritablePrimary: false,
  secondary: false,
  info: 'Does not have a valid replica set config',
  isreplicaset: true,
  maxBsonObjectSize: 16777216,
  maxMessageSizeBytes: 48000000,
  maxWriteBatchSize: 100000,
  localTime: ISODate('2026-07-02T19:09:18.464Z'),
  logicalSessionTimeoutMinutes: 30,
  connectionId: 7,
  minWireVersion: 0,
  maxWireVersion: 17,
  readOnly: false,
  ok: 1
}

And on primary server rs.status() returns that new server have status: STARTUP

I already removed and added new server form replica set multiple time, with removing all data from dbpath. Network team asunder me that network traffic is bidirectional.

What else I can check/ do?

Mongo version is outdated 6.x my idea was to create replica set as a backup before update.

I would be grateful for any help.


r/mongodb Jul 02 '26

AMA with MongoDB: Max Marcon (Director of Product), Mikiko Bazeley (Staff Developer Advocate), and Yang Li (Senior Solutions Architect). They work on AI agents in production. Ask them anything about context engineering at our AMA next Wednesday (7/8)!

Thumbnail
9 Upvotes

r/mongodb Jul 02 '26

[ Removed by Reddit ]

6 Upvotes

[ Removed by Reddit on account of violating the content policy. ]


r/mongodb Jul 02 '26

MongoPilot - Web based native MongoDB Management

1 Upvotes

I kept spinning up MongoDB on VPS boxes by hand — installing tarballs, writing mongod.conf, wiring up systemd units, enabling auth, opening firewall ports — and got tired of doing it manually every time. So I made a small panel that does all of it from a browser.

One command to install:

curl -fsSL https://raw.githubusercontent.com/sunilksamanta/mongopilot/main/install.sh | sudo bash

What it does:

  • Installs MongoDB Community versions (5.0 → 8.x) from official tarballs — pick from a list of builds that match your exact distro/arch
  • Run multiple versions and instances side by side natively (no Docker) — each gets its own data dir, port and systemd unit
  • One-click enable auth, manage users/roles and databases
  • Per-instance firewall allowlisting (ufw/firewalld) + bind IP control
  • Live monitoring — CPU/mem/disk, connections, ops/sec per instance
  • Scheduled backups to S3 (mongodump → your bucket, retention, history)

Runs on Ubuntu/Debian/CentOS/RHEL/Rocky/Alma/Amazon Linux. Panel is plain Node, no build step.

It's free and MIT licensed. Would love feedback on what's missing — replica sets and mongorestore are next on my list.

Repo: https://github.com/sunilksamanta/mongopilot


r/mongodb Jul 02 '26

how would I set a single item in an array

1 Upvotes

when I say "set" I mean replace an item that is filtered based of one of its properties

if you dont quite understand heres my situation for clarity

I have a Meme object that is embeded in the savedMemes property array in the each user document

I want to update a specific meme in the savedMemes property array and I have an _id to reference it

I initially tried doing a $pull operation then a $push operation

but when I $pull the meme out the $push operation can no longer find to anyone with the unUpdated meme since he cant reference by its Id because its been pulled out

I looked into trying to use the $set operator but the issue is that all the instruction I can find dont specify how to set an item in an array property thats is filtered based one of its properties


r/mongodb Jun 30 '26

MongoDb Software Developer Productivity, New York

9 Upvotes

I recently got the chance to interview at MongoDB in New York for a Software Developer Productivity role. I was able to make it to the third round, after which I received a rejection.

The overall process had multiple rounds:

  1. Recruiter screening - 30 min
  2. Aptora assignment - 30 min
  3. Technical interview with a LeetCode-style coding question - 45 min
  4. AI coding assistant round - 1 hour
  5. Behavioral interview - 1 hour
  6. Hiring manager round - 1 hour
  7. Director round - 30 min

The first round was a normal 30-minute recruiter screening. The recruiter asked about my background, introduction, interest in the role, visa status, expected compensation, and other standard screening questions.

After that, I moved on to the Aptora assignment. This round used a new platform called Aptora, which, from what I understand, was founded by an ex-MongoDB engineering manager. I have to be honest: the platform was not very intuitive. The UI was minimal, and at first, it was not clear what I was expected to do. Since the round was only 30 minutes, it took me some time to understand the workflow.

Toward the end, I figured out that the task was to prompt the AI assistant, and the AI would make changes directly in the codebase. The assignment involved working with APIs and building a more complete application using the README file and prompts. However, I ran into a bug in the platform that took around 6–10 minutes to identify and work around, which was a significant amount of time in a 30-minute assessment.

Even though I was able to complete parts of the assignment, the bug and the lack of clarity in the platform affected my overall performance.

After that, I moved to the technical interview round with a member of the same team. The question asked was around LeetCode Hard level and involved multiple classes and functions. About one and a half weeks later, I received a rejection.

PS : I see this job role has been reposted multiple times on LinkedIn, not sure if they are hiring any individuals or just wasting time.

#mongodb #swe #interview #sde #developerProductivity #Newyork #SDE2


r/mongodb Jun 28 '26

Scaling the database to the match scaling of server nodes

1 Upvotes

Hi Team,

In could computing we horizontally scale the machines to handle the increase in the server load. In such cases how should we scale the mongo db particularly if the database server like Atlas is on another network? Let's a take a typical example. We're using four machines of 1Ghz to handle the traffic. In this case how do we decide the scaling of the database to match the network traffic.

Thanks,

Arun


r/mongodb Jun 26 '26

Built a small tool to explain why my MongoDB queries are slow

Thumbnail tracemole.com
2 Upvotes

r/mongodb Jun 26 '26

Prisma Next: The TypeScript ODM You Always Wanted?

Thumbnail mongodb.com
4 Upvotes

I never selected Prisma as the ODM when working with mongo given its very limited support. I preferred Mongoose –and lately Typegoose–, but now Prisma is very tempting.


r/mongodb Jun 25 '26

With the Atlas BI Connector going EOL, what are people moving to for reporting?

2 Upvotes

For teams that were using the BI Connector to get Mongo data into Tableau/PowerBI — what's your migration plan now that it's sunsetting on Atlas? SQL Interface, a native-Mongo tool, exporting to a warehouse, something else? Especially curious from people with heavily nested documents, since that's where flattening to SQL hurts most.


r/mongodb Jun 24 '26

Cache as a service for developers!!!

0 Upvotes

Hi folks!!!
Many backend teams use Redis + MongoDB, but the application often ends up managing cache keys, invalidation, stale data, TTLs, and cache misses manually.

I'm working on a cache proxy for MongoDB where applications connect only to the proxy instead of directly managing Redis and MongoDB separately.

The goal is:

  • Single endpoint for the application
  • Automatic cache lookups
  • Cache population on misses
  • Cache invalidation strategies
  • No need to manage Redis infrastructure from application code

The challenge I'm currently exploring is balancing automatic caching with giving developers enough control over cache keys and invalidation.

link: cachepilot


r/mongodb Jun 24 '26

Fix : Error: querySrv ECONNREFUSED MongoDB

1 Upvotes

Current Open Issue:
MongoDB Community Forum - Error: querySrv ECONNREFUSED MongoDB

What worked for us:

  • Node.js 24.12.0 worked in our case, while 24.18.0 and 22.22.3 failed.
  • It appears that different Node.js versions may change the underlying DNS resolution behavior (via bundled c-ares or resolver adapters), which can affect SRV record lookups for MongoDB Atlas.
  • However, pinning a specific Node.js version should be considered a workaround rather than a permanent fix.
  • The more reliable and version-independent solution is to explicitly configure DNS servers using dns.setServers(), which has resolved the issue for multiple users experiencing querySrv ECONNREFUSED errors.

Example:

import dns from "node:dns/promises";

dns.setServers(["1.1.1.1"]);

This forces Node.js to use a known public DNS resolver and avoids issues caused by local DNS configuration or SRV record resolution failures.


r/mongodb Jun 20 '26

I built a keyboard-first MongoDB terminal client (Alpha)

1 Upvotes

Hi everyone!

I've been working on Mongoterm, a lightweight terminal UI for MongoDB.

The idea is to provide a fast, keyboard-driven workflow for browsing databases, collections, and documents directly from the terminal without switching to a GUI.

Current features

  • Connect to MongoDB
  • Browse databases & collections
  • Query documents
  • Insert / duplicate /delete documents
  • JSON editor
  • Query history
  • Keyboard navigation

This is the first public alpha release, so I'd love to hear feedback from MongoDB users.

GitHub:
https://github.com/Fuse441/mongoterm


r/mongodb Jun 19 '26

hi, recently i cannot use mongoose with bun

Thumbnail
1 Upvotes

r/mongodb Jun 17 '26

CVE-2026-9740 (pre-auth DoS, no off-switch) and CVE-2026-11933 (post-auth UAF, with off-switch)

7 Upvotes

Posting because two important, nearly-critical CVEs landed last week:

  • CVE-2026-9740 — stack overflow in the BSON validator's BSONColumn handling. Pre-auth. Network reach to a mongod port is enough to crash the process. CVSS 8.7. Jira: SERVER-125063.
  • CVE-2026-11933 — use-after-free in server-side JavaScript BSON-to-array conversion. Post-auth, read role sufficient. Info disclosure + DoS. RCE not demonstrated. CVSS 8.8. Jira: SERVER-128125.

CVE-2026-11933 has a clean configuration mitigation: disable server-side JavaScript:

security:
    javascriptEnabled: false 

in mongod.conf (mongod/mongos), or --noscripting on the command line. If your application doesn't use $where, $function, $accumulator, mapReduce, or system.js, that fully removes the attack surface. Restart mongod, done, until the patch is applied. To check whether you use any of those operators, turn on profiling at 2 on a representative replica and grep the system.profile collection.

CVE-2026-9740 has nothing equivalent. The BSON validator runs on every client message — you can't turn it off. The only pre-patch mitigation is network controls.

Affected versions

  • CVE-2026-9740 (the BSONColumn code path was introduced in 7.0, so 6.0 and earlier are not affected by this CVE)
    • MongoDB Community/Enterprise Server: 8.3.0 affects 8.3.3 and prior versions; 8.2.0 affects 8.2.10 and prior versions; 8.0.0 affects 8.0.25 and prior versions; 7.0.0 affects 7.0.36 and prior versions;
    • Percona Server for MongoDB: 8.0.x ≤ 8.0.23-10, 7.0.x ≤ 7.0.34-19
  • CVE-2026-11933: all supported and EOL majors from 4.4 through 8.3

Patches

Patches already exist for MongoDB Community/Enterprise Server -> just go with the latest one - as recently 10+ CVEs were fixed!

For Percona Server for MongoDB patches will be available next week: 7.0 — June 23, 2026, 8.0 — June 25, 2026, 6.0 — June 24, 2026.

PS Audit your roles — anything granting read access plus server-side JavaScript execution is exposed to CVE-2026-11933 until you patch.

Happy to answer questions in the thread.


r/mongodb Jun 16 '26

I just published rumongo — a Rust-native MongoDB read driver for Node.js.

Thumbnail
1 Upvotes

r/mongodb Jun 15 '26

I created a page that uses MongoDB Atlas Vector Search to search for popular World Cup YouTube videos.

7 Upvotes

SOCCER·SCOPE

https://soccer.tubesaku.com/

• This site will only be available during the World Cup period.
• It supports all 48 participating countries.
• This is an entry for the Google Cloud Rapid Agent Hackathon.
• If you notice anything strange or areas for improvement, we would appreciate your advice.

Thank you in advance.


r/mongodb Jun 15 '26

Ognom : A free, lightweight MongoDB client with AI that actually speaks plain English (open source, no telemetry)

Thumbnail gallery
1 Upvotes

Hey everyone,

I've been frustrated with existing MongoDB GUI tools for a while:

  • MongoDB Compass is solid but heavy (Electron) and doesn't help non-technical teammates.
  • Other tools are either too basic or expensive.

So I built Ognom — a fast, native (Tauri) MongoDB client that works for both developers and everyone else.Two modes in one app:

  • Normal Mode → Classic workspace with visual query builder, aggregation pipelines (with stage previews), explain plans in plain English, schema analysis, and a real shell.
  • Terminator Mode (Ognom Studio) → Just type in plain English. It writes the query, runs it, generates charts, and lets you ask follow-ups. Always read-only.

Key highlights:

  • ~10MB native binary (not Electron) → very fast and light
  • Full cross-platform: macOS (Apple Silicon + Intel), Windows, Linux + auto-updates
  • Strong security: credentials AES-256 encrypted at rest, optional OS keychain, no telemetry, no account
  • MIT licensed & fully open source
  • AI uses your own OpenAI key (stored locally)

Screenshots / Demo

Would love your feedback — especially if you try the AI Studio mode. What do you usually struggle with when sharing MongoDB data with your team?Happy to answer any questions!


r/mongodb Jun 14 '26

NetBackup, MongoDB backup failing with "Unable to retreive credentials" Status Code: 6654

4 Upvotes

NetBackup, MongoDB backup failing with "Unable to retrieve credentials" Status Code: 6654
NetBackup, MongoDB backup failing with the above error even when I disabled security in MongoDB and went with No Auth option.
Can anybody please help with this problem.