Advanced System Design Fundamentals
0% completed
Vector Database Selection
Three SQL statements add vector search to an existing Postgres database.
CREATE EXTENSION vector; ALTER TABLE chunks ADD COLUMN embedding vector(1024); CREATE INDEX ON chunks USING hnsw (embedding vector_cosine_ops);
Many design reviews never consider this option. They open with "Which vector database should we use?" and compare vendors' speed charts. A better first question is whether the workload needs a second database at all. The Parts below cover what a second store costs, how Postgres searches vectors, and when a dedicated store is worth its cost.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%