timescale / pgvectorscale

A complement to pgvector for high performance, cost efficient vector search on large workloads.
PostgreSQL License
1.11k stars 47 forks source link

Optimize reading the buffer #17

Closed cevian closed 1 year ago

cevian commented 1 year ago

Turns out RelationGetNumberOfBlocksInFork is an expensive call. Luckily, it's not needed since ReadBufferExtended will throw an error if the block number is out of range.

without pq before build time: 360s after build time: 267s

with pq before build time: 925s after build time: 745s