Ep 713 Blog 3:21 w/ Pippa & Tyler

Spark 4.2 has a feature that could retire your vector database

Apache Spark 4.2’s new ‘AI workload mode’ lets teams drop dedicated vector stores by running embeddings directly inside Spark—challenging the idea that vector databases are essential. We dig into the technical trade-offs, who should actually switch, and where the claim might not hold.

Blog
Embed this episode

Paste this on any site — the player is a self-contained iframe with no cookies or trackers.

<iframe src="https://sandrise.io/exploring-next/embed/713"
  width="100%" height="180" style="max-width:640px;border:0;border-radius:12px;overflow:hidden"
  title="Exploring Next — Episode 713 audio player"
  loading="lazy" allow="autoplay" referrerpolicy="strict-origin-when-cross-origin"></iframe>
Embed & API docs →
Script Mistral Small 4 119B 2603 Voice Inworld TTS 2

Transcript

Tyler —retire your vector database? I didn’t even know I was using one of those today, and now they’re telling me I’m obsolete?

Pippa Right—you’re sitting there staring at the vector DB connection string in the agent config like it’s a sacred ritual. No more.

Tyler That’s pure product fantasy unless the latency math actually works out. Show me the benchmarks.

Pippa I spent yesterday’s infra meeting copy-pasting the vector store host into the agent config—again. One less YAML file to babysit is a product win whether the latency’s perfect or not.

Tyler …makes sense in a ‘less stuff to debug at 3 AM’ way. But the article’s headline is still clickbaity.

Pippa Oh, come on—this is the first time the embeddings pipeline and the retrieval pipeline share a memory space. We haven’t even gotten to the part where we stop paying two licenses for one job.

Tyler Sure, if your retrieval volume is small enough you won’t notice the linear scan. That’s assuming you’re lucky enough to have a cluster big enough to keep all your embeddings in memory.

Pippa The article is explicit: DataFrame API lets you treat embeddings like any other column. UDFs do the embedding, reranking lives right there, and vector search happens in the same process—no data shuffle back to a dedicated service.

Tyler Exactly my problem—they’re selling “no more vector DB” while quietly assuming the entire dataset stays hot in RAM. Once you cross the point where you need approximate nearest neighbor indexes, you’re back to paying for a vector store.

Pippa So your read is it’s a consolidation play, not a retirement play. Fine. But consolidation is still a product win when it means one cluster, one license, one set of incidents.

Tyler Mm-hm. And one CPU bill that just doubled because you’re shoveling gigabytes of embeddings around in memory instead of letting a purpose-built vector database do the heavy lifting.

Pippa Okay, okay—what teams should actually try this? I’m guessing Spark-heavy shops doing Q&A workloads, where a linear scan on cached data is fast enough and infra already loves Spark.

Tyler Also groups allergic to managing a second microservice. If you’re already running Spark 4.2 and your retrieval traffic isn’t astronomical, the savings look real.

Pippa And the flip side—when do they bolt a vector store back on? When the result set is large and the user is watching a spinner, right?

Tyler Bingo. High-scale RAG, strict SLA retrieval, churny embedding models—those are still vector-database territory. The article’s ‘retire’ claim quietly concedes that at the top of the post.

Pippa Still—drop the vector store from the stack, swap to the ai module, and suddenly you’re shipping a single pipeline instead of a constellation of services. That’s not nothing.

Tyler Not nothing, and not magic. If you’re already paying a vector DB license, the savings may not offset the cluster upgrade. But as a dev-experience leap for Spark shops, it lands.

Pippa The article points to the new ai module in Spark 4.2 docs and a JIRA ticket for the vector search subtask. Worth spinning up a branch on a toy dataset and timing the linear scan cliff.

Tyler …or maybe we time the cluster bill cliff instead. Still, I’ll take a world where we’re not hand-wiring YAML just to close the RAG loop.

Pippa Yeah—now if only the vector store license would retire itself that easily, we could actually afford this caper. See you next week.