By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Instacart Consolidates Search Infrastructure on Postgresql, Phasing Out Elasticsearch
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > News > Instacart Consolidates Search Infrastructure on Postgresql, Phasing Out Elasticsearch
News

Instacart Consolidates Search Infrastructure on Postgresql, Phasing Out Elasticsearch

News Room
Last updated: 2025/08/25 at 4:15 PM
News Room Published 25 August 2025
Share
SHARE

Instacart has redesigned its search infrastructure by replacing Elasticsearch with PostgreSQL, combining keyword and embedding-based retrieval in a single system. By consolidating catalog and search data into Postgres, the company aimed to simplify operations, reduce synchronization overhead, and improve precision and recall in search results.

A key part of the redesign was improving how results are retrieved. Traditional keyword search excels at matching exact product attributes, for example, a query like “pesto pasta sauce 8oz” benefits from precise lexical matching. But broader intent-driven queries, such as “healthy foods”, are better handled through semantic retrieval, which understands relationships between terms and concepts. By combining both approaches in Postgres, Instacart can balance precision (returning only relevant results) with recall (capturing as many relevant items as possible), ensuring that customers see both the exact products they’re looking for and meaningful options for discovery.

According to the Instacart engineering team, the migration improved development velocity by removing the need to reconcile data between systems. The hybrid infrastructure also provided greater flexibility in handling dynamic inventory and complex user preferences, enabling the platform to process millions of search requests daily. Real-time updates to prices, availability, and discounts are reflected instantly, supporting a more efficient and personalized shopping experience for customers.

As Ankit Mittal, an engineer at Instacart, remarked:

A normalized data model allowed us to achieve a 10x reduction in write workload compared to the denormalized data model we used in Elasticsearch. This resulted in nearly 80% savings on storage and indexing costs, reduced dead-end searches, and improved the overall customer experience.

Previously, Elasticsearch handled full-text queries while transactional data was stored in Postgres. Maintaining two separate databases introduced synchronization challenges and higher operational costs. To add semantic search capabilities, the team initially implemented FAISS before transitioning to a hybrid model using the pgvector extension in Postgres. This approach allows both lexical and embedding-based retrieval to run in a single system, reducing data duplication and complexity.

Previous retrieval architecture with FAISS and Postgres (Source: Instacart Engineering Blog)

The redesigned architecture uses sharded Postgres instances with a normalized data model to scale horizontally. Each shard contains catalog and search indexes, and queries are routed through a service layer to the appropriate shard. According to Instacart engineers, leveraging Postgres GIN indexes and a modified ts_rank function achieved high-performance text matching, while the relational model allowed ML features and model coefficients to be stored in separate tables. Normalization reduced write workloads by tenfold compared to Elasticsearch, cutting storage and indexing costs, while supporting hundreds of gigabytes of ML feature data for more advanced retrieval models.

Hybrid retrieval architecture with pgvector and Postgres (Source: Instacart Engineering Blog)

Postgres extensions were central to the redesign. Features such as pg_trgm for trigram-based text search and pgvector for embedding-based search allow the database to handle both traditional keyword and semantic search. Queries pass through a routing layer to shards containing the necessary indexes, returning results efficiently without cross-system synchronization.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article SIM swapping is real, and this setting protects me from it
Next Article Optoma UHZ68LV
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Elon Musk accuses Apple and OpenAI of stifling AI competition in antitrust lawsuit
News
I Accidentally Gave My PIN to an AI—Here’s What Happened Next
Computing
Elon Musk’s xAI sues Apple and OpenAI over App Store drama
News
XRP Holds After Heavy Whale Distribution, But Is The Next Big Winner Found Somewhere Else? | HackerNoon
Computing

You Might also Like

Elon Musk accuses Apple and OpenAI of stifling AI competition in antitrust lawsuit

5 Min Read
News

Elon Musk’s xAI sues Apple and OpenAI over App Store drama

4 Min Read
News

SORT vs. SORTBY in Microsoft Excel: Which Should You Use?

15 Min Read
News

The Overlooked Wyatt Russell And Dennis Quaid Western Crushing It On Netflix – BGR

3 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?