~/talk

Vector data in Postgres: Size, TOAST, Filters and Performance

links:none on file
slides:none on file

Vectors store as arrays of single-precision floats (float4 storage) and common embeddings run 500–1,500 dimensions; anything over ~2 KB goes to Postgres TOAST -> chunks -> 4 IOs per vector so a 1M-row brute-force scan can add ~4M extra IOs and inline brute force examples hit ~1s per million. Use ANN indexes: IVF (e.g. 100 lists, probe 3 lists) trades recall for speed; HNSW gives better recall but far higher build and DML cost; index dimension limit is 2,000 unless you quantize or cast.

AI-written summary · about

  1. 0:00Introduction
  2. 1:28What are vectors
  3. 6:34Vector storage in Postgres
  4. 9:24Why store vectors
  5. 9:47Brute force KNN search
  6. 14:06Approximate nearest neighbor
  7. 16:15Vector size limits for indexes
  8. 17:43Vector indexes overview
  9. 19:09IVF flat index
  10. 22:02HNSW index
  11. 23:48SCAN index
  12. 25:32Index build time comparison
  13. 27:02Improving index build performance
  14. 28:10Reducing search area
  15. 29:15Filtering strategies
  16. 33:13DML operations impact
  17. 38:10Recommendations for vector data
  18. 42:10Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.