New to AI? Vector Search: In Your Database or in a Vector Database?

Hi all. Last time we saw what embeddings and vector indexes are. The next question comes fast, usually from an architect: "Do we need a vector database now?" Maybe. Often not. Here's what the databases we already run can do, what dedicated vector databases add, and how I'd decide.

What your database already offers

DatabaseWhat's thereWorth knowing
Oracle AI Database 26aiVECTOR type, VECTOR_DISTANCE, HNSW and IVF indexes, hybrid vector indexes (text + vector), embedding and chunking in PL/SQLIncluded in the database, also in the Free edition. HNSW needs the vector memory pool.
SQL Server 2025VECTOR type, VECTOR_DISTANCE, AI_GENERATE_EMBEDDINGS, DiskANN vector indexThe vector index and VECTOR_SEARCH are preview features in SQL Server 2025.
PostgreSQLThe pgvector extension: vector type, distance operators, HNSW and IVFFlatAn extension, not core Postgres. Most managed Postgres services ship it.
MySQLVECTOR type in MySQL 9The docs say DISTANCE() is only in HeatWave on OCI and MySQL AI, not in the Community edition. A VECTOR column can't be a key.
MongoDBMongoDB Vector Search with $vectorSearch in an aggregationBuilt for Atlas first. Vectors live next to the documents.

Plenty of news here lately: Oracle made vector indexes smaller in RU 23.26.4, Microsoft brought DiskANN to Azure Postgres, and Pinecone even moved into Postgres with pg_pinecone.

What a vector database adds

Dedicated vector databases were built for one job: store a huge number of vectors and find neighbors fast. The names you'll hear most:

  • Pinecone: a managed cloud service, nothing to install.
  • Milvus: open source, made for very large collections.
  • Qdrant: open source, strong filtering on metadata.
  • Chroma: open source, very popular for prototypes and local work.

Their strengths: scale to billions of vectors, lots of tuning options for search, and the load stays off your OLTP database. The cost: one more system to install, patch, back up, secure and monitor. And a pipeline that copies data out of your database and keeps it in sync.

How I'd decide, as a DBA

My default is to start in the database you already run, for very DBA reasons:

  • One copy of the data. No sync job, no stale vectors, no second place for a leak.
  • Same security. Grants, row-level security, auditing and encryption already apply.
  • Same backup and recovery. Your RMAN, SQL Server backups or pgBackRest cover the vectors too.
  • Joins and filters. "Similar incidents, but only for this application and the last 90 days" is a normal WHERE clause.

I'd look at a dedicated vector database when the numbers get really big, when the vectors don't belong to any database you run, or when a separate team owns the AI platform and wants its own tool. Either way, ask the boring questions first: who backs it up, who patches it, where does the data go, and what does the restore test look like?

Before "we need a new database": try the vector features of the one you already back up.

Official reading

Next: RAG, where vector search finally does something useful for us, answering from our own runbooks. Is anyone already running a separate vector database next to their main one? I'd like to hear why.

The New to AI? series

All parts, in one place: New to AI? And if you want every AI word mapped to something DBAs already know, start with You Already Speak AI (also for SQL Server and PostgreSQL).

Comments