MongoDB's fiscal second-quarter revenue grew 30% year over year with Atlas growth accelerating for a fifth straight quarter.
Elastic grew 17% and guided to a slower 13% next quarter.
MongoDB's 2025 acquisition of Voyage AI now powers Atlas Agent Engine.
Every company building an AI product runs into the same unglamorous problem: The AI needs a place to store and retrieve information quickly, accurately, and at scale. That's the business MongoDB (NASDAQ:MDB) and Elastic (NYSE:ESTC) are both in, and both stocks have been cut down this year on worries over cloud-giant competition and slowing enterprise software spending. If I had to own just one through the end of 2027, I'd take MongoDB, and the gap in their most recent earnings reports is a big reason why.
MongoDB's core product, Atlas, is a cloud database that developers use to store the kind of flexible, unstructured data AI applications generate, think chat histories, documents, and the vector embeddings that let an AI system search by meaning instead of exact keywords. Elastic's search platform does something related but distinct: it specializes in indexing massive volumes of data, logs, documents, security events, so companies can search and analyze it in real time. Both have spent the past two years retooling their platforms specifically for AI workloads, and both are now selling that retooling to investors as the reason to keep believing.
Missed AI’s "Act 1"? Act 2 Could Be 15x Bigger. Most investors think they missed the AI boat because they didn't buy Nvidia in 2005. But according to our analysts, we’re only at the end of "Act 1"—the R&D phase. "Act 2" is the global rollout. Continue »
Image source: Getty Images.
MongoDB's fiscal second-quarter results, released Sept. 1, showed revenue of $771.8 million, up 30% year over year, with Atlas revenue growing about 29% for a fifth straight quarter and Atlas customer count climbing to 69,300 from 58,500 a year earlier. Management raised full-year revenue guidance to a range of $2.99 billion to $3.03 billion on the back of that strength, according to the same release.
Elastic's fiscal second-quarter results, released Nov. 19, showed revenue of $496 million, up 17% year over year, with current remaining performance obligations up 19%. That's a respectable quarter, but the company's own third-quarter guidance called for revenue of $507.5 million to $508.5 million, which works out to roughly 13% growth at the midpoint, a deceleration from the quarter it just reported, per the same release. MongoDB is growing faster and, by its own numbers, accelerating. Elastic is growing more slowly and, by its own guidance, decelerating. That's the whole argument in two sentences.
Growth rate aside, what convinces me is what MongoDB has actually built heading into next year. In February 2025, the company acquired Voyage AI, an embedding and reranking model provider, specifically to reduce AI hallucinations by handling retrieval within the database itself rather than forcing developers to stitch together separate tools. That technology now powers Atlas Agent Engine, which MongoDB launched at its investor day to let companies run AI agents in production with built-in memory and governance, using Voyage's retrieval models under the hood. Elastic has real AI tools of its own, including a context engine and new alerting features announced the same quarter, and it's acquiring HoneyHive to expand into agent observability, but it's playing a similar hand from a smaller, slower-growing base.
Neither stock is cheap relative to its earnings, and both trade well off their 2026 highs, a sign the market isn't fully convinced by either story. MongoDB faces real competition from Amazon (NASDAQ:AMZN) and Microsoft (NASDAQ:MSFT), all of which bundle their own AI-ready databases into cloud platforms customers already use, and Atlas growth could cool the way Elastic's just did. Elastic, for its part, has a genuinely sticky customer base in search and security, and one quarter's slower guidance doesn't erase that. This isn't a case where one company is healthy and the other is broken.
Both of these companies solve a real problem that isn't going away as more software gets built around AI agents. But I'd rather own the one growing faster, raising guidance instead of guiding down, and shipping an agent-specific product built on technology it bought specifically for this moment. That's MongoDB, and heading into 2027, that's the one I'd hold.
In 2009, a "Double Down" signal flashed for a little-known chipmaker called Nvidia. If you’d invested $5,000 then, you’d be sitting on $1,956,215 today.*
Now, for the first time in years, that same "Total Conviction" signal is flashing for a company 1/100th the size of Nvidia. It’s a key player in the $1.8 trillion space race, and with the stock recently sitting 20% off its highs, the window to get in early is closing fast.
Continue »
*Stock Advisor returns as of December 1, 2026.
Micah Zimmerman has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Amazon, Microsoft, and MongoDB. The Motley Fool recommends Elastic. The Motley Fool has a disclosure policy.