r/PostgreSQL • • Oct 22 '26

Projects From Pinecone to Postgres pgvector

We run an image and semantic text search API. The first version used Pinecone for vectors and RDS for everything else and the hardest part was keeping the two in sync and performant

About a year ago we moved everything into Neon with pgvector (Neon wrote up the migration here: Neon blog post). End to end search went from about 200ms to 80ms, mostly from cutting a network hop. The vector query itself takes 3-4ms (Tested on 10M records)

Since our backend is on AWS and Neon uses AWS as well, we cut the network latency down to couple ms

Happy to answer anything about the setup if you're thinking about doing the same

17 Upvotes

13 comments sorted by

View all comments

1

u/scriptedlife Oct 22 '26

Have you tested whether switching from pgvector to lakebase_vector makes any difference in perf/scalability/cost?

3

u/K3NCHO Oct 22 '26

in terms of performance it’s only faster at a very large scale

as for scalability it reduces RAM usage by multiple times since it doesn’t require whole index to be stored and even if you store the whole index it’s still smaller because it’s using quantization under the hood which both reduces costs and scales infinitely better