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
| Database | What's there | Worth knowing |
|---|---|---|
| Oracle AI Database 26ai | VECTOR type, VECTOR_DISTANCE, HNSW and IVF indexes, hybrid vector indexes (text + vector), embedding and chunking in PL/SQL | Included in the database, also in the Free edition. HNSW needs the vector memory pool. |
| SQL Server 2025 | VECTOR type, VECTOR_DISTANCE, AI_GENERATE_EMBEDDINGS, DiskANN vector index | The vector index and VECTOR_SEARCH are preview features in SQL Server 2025. |
| PostgreSQL | The pgvector extension: vector type, distance operators, HNSW and IVFFlat | An extension, not core Postgres. Most managed Postgres services ship it. |
| MySQL | VECTOR type in MySQL 9 | The 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. |
| MongoDB | MongoDB Vector Search with $vectorSearch in an aggregation | Built 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
WHEREclause.
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?
Official reading
- Oracle: AI Vector Search User's Guide
- SQL Server: Intelligent applications and AI, CREATE VECTOR INDEX
- PostgreSQL: pgvector
- MySQL: Vector functions
- MongoDB: MongoDB Vector Search overview
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.
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
Post a Comment