Linear migrated search off Elasticsearch and pgvector onto turbopuffer and experienced:
- Single system for vector and full-text search
- Zero-ops search for terabytes of data
- 70% reduction in cost, unlocking indexing far more data
Linear replaced Elasticsearch & pgvector to cut down ops and unify their search infrastructure. Cost wasn't the focus, but 70% savings has Linear thinking about indexing far more data.
70%
cost reduction
2B+
documents
13ms
p50 latency
4M+
namespaces
Their responsiveness and shipping velocity make us feel like we are their only customer.
Tom Moor, Head of Engineering
Linear was drawn to turbopuffer for its ability to ingest 100s of millions of full-text search documents & vectors without having to think about machine types. Instead, Linear can focus on shipping features.
Linear does hybrid search (FTS + vector) on multiple
(org_id, table) namespaces, rank fuse, and re-rank:
┌──────────────────────────────┐
│ ┌──────┐ ┌────────────────┐ │
│ │Linear│─▶│ Cohere │ │
│ │Query │ │ Embedding │ │
│ └──────┘ └──────┬─────────┘ │
│ ▼ │
│ ┌─turbopuffer queries────┐ │
│ │ Issues Vector │ │
│ ├────────────────────────┤ │
│ │ Issues FTS │ │
│ ├────────────────────────┤ │
│ │ Document Vector │ │
│ ├────────────────────────┤ │
│ │ Document FTS │ │
│ ├────────────────────────┤ │
│ │ Project Vector │ │
│ ├────────────────────────┤ │
│ │ Project FTS │ │
│ └───────────┬────────────┘ │
│ ▼ │
│ ┌────────────┐ │
│ │ Rank Fuse │ │
│ └─────┬──────┘ │
│ ▼ │
│ ┌──────────────┐ │
│ │ Cohere Rerank│ │
│ └──────────────┘ │
└──────────────────────────────┘Customer data security is critical to Linear. The ability to use customer managed encryption keys (CMEK) on a per namespace basis stood out.
When a user submits a search, Linear will issue parallel queries across multiple namespaces (documents, issues, projects, comments, attachments, issues, and initiatives) using vector + FTS to return a list of results that then get passed into a reranker:
Linear also leverages turbopuffer for:
Linear plans to leverage turbopuffer to power all of their AI features.
Linear migrated search off Elasticsearch and pgvector onto turbopuffer and experienced:
Linear migrated from running its own embedding pipeline to turbopuffer's native embeddings. They no longer have to deal with juggling rate limits and SDK complexity across multiple embedding providers, and they also sped up their embedding pipeline:
We love working with turbopuffer. I've never felt sold to and I've always felt I know exactly what I'm buying. Which when you're buying critical infrastructure is absolutely crucial.
Peter Travers, Software Engineer
We will continue to update this log as Linear's usage of turbopuffer evolves.