Look ma, no vector database: lake-scale vector search on open table formats
Pangram verdict · v3.3
We believe this text is mainly AI, with some AI-assisted and human-written content.
AI likelihood · overall
AIArticle text · 861 words · 25 segments analyzed
Today we are announcing vector search in Onehouse Lakegres, with a native index stored inside existing and new open tables.
You can search embeddings through a Postgres endpoint on the same tables you already have in your data lake.
The index and data are managed in open formats in your own bucket.
Vector search stopped at the application database A few years ago, adding vector search required a separate database. Postgres now has pgvector, OpenSearch has k-NN, and MySQL, Oracle, MongoDB and SQL Server have their own implementations.
Databricks also offers vector search in Lakebase Search. Similarity search has become a standard index type for application data.
Most of the data an agent needs to query is in the lakehouse. Support transcripts, logs, documents, product catalogs and years of event history are stored in open tables on object storage. These datasets are 100 to 1,000 times larger than a typical Postgres instance. To search them with any of those databases, you have to copy the data into the database first. Copying lake-scale datasets into a relational database just to search their vectors is an absurd requirement. You end up paying to store the data twice and operating a pipeline to keep the copies in sync.
Yesterday, we announced unstructured data processing on Onehouse, which parses documents, images and video and stores their embeddings in open tables.
Lakegres can now index and search those vectors, so agents can query that unstructured content alongside the business records already in the lakehouse. How the market searches lake data today Lakehouse and warehouse vendors have also added vector search. Each vendor below stores the index outside the open table, in a service or format that requires its own engine to read.
Vendor How it works Where the index lives Snowflake Cortex Search runs as a service synced from a table.
A VECTOR column on its own can only be searched by brute force.
Inside Snowflake.
VECTOR columns are not supported on Iceberg tables.
Databricks AI Search syncs a Delta table into a serving endpoint.
Databricks-managed storage, as a copy outside the Delta table.
AWS S3 Vectors stores vectors in a dedicated vector bucket. A separate bucket type from S3 Tables, which hold Iceberg. Google BigQuery IVF and TreeAH indexes built on standard BigQuery tables. No vector indexes on Iceberg tables: Google limits index creation to standard tables.
BigQuery-managed storage. VAST Data A vector store inside the distributed VAST DataBase.
VAST’s own Element Store, outside Hudi or Iceberg table formats.
These vendors advocate open table formats while keeping their search indexes in closed formats. If you move to another engine, you have to rebuild every index in that vendor’s format, even though the underlying tables are open.
Why database techniques stop at lake scale Most production vector search today runs on OpenSearch or Postgres.
Both offer HNSW (OpenSearch implementation, pgvector implementation), a graph index that performs well when the entire graph fits in memory. AWS’s own sizing formula for OpenSearch is 1.1 × (4 × dimensions + 8 × m) bytes of RAM per vector. Our benchmark table has 247 million vectors at 1,024 dimensions. With m set to 16, that comes to about 1.15 TB of memory for one table, and about 46 TB at 10 billion vectors. A pgvector HNSW index in Postgres also has to stay in shared buffers or the page cache to be fast, and latency degrades sharply once the working set exceeds RAM. Graph traversal is also a poor match for object storage, because each hop is a small random read. These designs work well for application databases with tens of millions of vectors. A data lake can be several orders of magnitude larger. LinkedIn reported an exabyte across its Hadoop clusters in 2021. Uber’s lake holds 350 petabytes and ingests 6 trillion rows a day. Pinterest runs a 500-petabyte lake on Iceberg, and Netflix describes its Iceberg warehouse as exabyte scale. Embedding even a small fraction of these datasets produces billions of vectors. Keeping that many vectors in RAM is too expensive for most teams. Training-data curation also needs large-scale similarity search. Post-training workflows can use it to select relevant examples and remove near-duplicates across large pools of candidate data. Repeated searches make cost per search matter as much as latency.
VAST, which supplies storage for AI training, uses a clustered vector index on flash in its distributed Element Store.
Its launch material describes memory-resident indexes as prohibitively expensive at tens or hundreds of billions of vectors.
turbopuffer also uses storage-based clustering.
Lakegres applies this approach to existing Hudi and Iceberg tables through an open index. What we built Lakegres stores the vector index in the table’s metadata, in the same bucket as the data files. Commits that insert, update or delete rows also update the index. This keeps the index consistent with the table without a separate sync job or a second copy of the vectors. To our knowledge, this is the only available open vector search index for existing Hudi and Iceberg tables that is maintained with table writes and leaves the data files unchanged.
Iceberg support builds on the Hudi-backed indexing work in Apache XTable (Incubating).