<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/coupang-kills-db-sequences-at-scale-hybrid-search-fixes-broken-rag-pipelines-945oae2ry" -->

---
title: Coupang kills DB sequences at scale, hybrid search fixes...
description: A curated roundup of database engineering stories: Coupang replaced native DB sequences across 100+ services with a two-tier caching SDK hitting 50K...
canonical: https://daily.dev/posts/coupang-kills-db-sequences-at-scale-hybrid-search-fixes-broken-rag-pipelines-945oae2ry
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Coupang kills DB sequences at scale, hybrid search fixes broken RAG pipelines | daily.dev
og:description: A curated roundup of database engineering stories: Coupang replaced native DB sequences across 100+ services with a two-tier caching SDK hitting 50K...
og:url: https://daily.dev/posts/coupang-kills-db-sequences-at-scale-hybrid-search-fixes-broken-rag-pipelines-945oae2ry
og:image: https://api.daily.dev/og/posts/945oAE2ry.png
og:image:alt: Coupang kills DB sequences at scale, hybrid search fixes broken RAG pipelines
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Coupang kills DB sequences at scale, hybrid search fixes broken RAG pipelines

**[Databases Digest](https://daily.dev/sources/databases_digest)** · 4 min read · 0 upvotes · 0 comments

## Summary

A curated roundup of database engineering stories: Coupang replaced native DB sequences across 100+ services with a two-tier caching SDK hitting 50K sequences/second for under $1K/month on DynamoDB. A real-world RAG bug case shows hybrid search (vector + SQL filters) boosting Recall@5 from 72% to 94% on a 10M-row corpus. NetBox's TurboBulk uses PostgreSQL's COPY protocol to reach 24K objects/second versus 100-200/second through a standard ORM. Toasty, an async Rust ORM from the Tokio team, launched on crates.io with SQL and DynamoDB support. Also covered: pg_textsearch BM25 extension, Estuary PostgreSQL CDC updates, IVF vs HNSW benchmarks in Milvus, the inbox pattern with PostgreSQL, and a database selection framework drawing on Netflix, Instagram, and Twitter architectures.

## Content

**TLDR:** Coupang replaced native database sequences across 100+ services migrating to DynamoDB, hitting 50,000 sequences/second for under $1,000/month. A real-world RAG bug report makes a strong case for hybrid search over pure vector similarity, with recall jumping from 72% to 94% on a 10M-row corpus. NetBox shipped TurboBulk using PostgreSQL's COPY protocol to hit 24,000 objects/second versus the 100-200/second you get through a standard ORM. Toasty, an async Rust ORM from the Tokio team, landed on crates.io with SQL and DynamoDB support.

---

## Coupang's two-tier sequence replacement at 50K/sec

When Coupang migrated from a relational database to DynamoDB, they had to replace native sequences for 100+ teams without breaking anything. The solution is a thick client SDK embedded in each service that handles roughly 99% of requests from local memory, backed by a server-side cache, with DynamoDB only seeing about 0.1% of actual requests via conditional writes. A sliding window algorithm handles refill timing so cache exhaustion never blocks user requests. The Orders team migrated 12 services in 3 weeks with zero downtime and fewer than 50 lines of code changed per service. The key insight worth stealing: most teams didn't actually need gap-free or globally ordered sequences, which turned a hard distributed coordination problem into a straightforward caching design.

---

## Hybrid search fixes the RAG stale-document problem

A customer-support RAG agent returning outdated policy documents after a laptop return exposed something worth paying attention to: vector similarity alone cannot enforce recency, tenant isolation, or document scope. The fix is combining vector distance with SQL WHERE clauses, JOINs, and GROUP BY in a single query. On a 10M-row corpus, hybrid search pushed Recall@5 from 72% to 94% and dropped the stale document rate from 23% to under 1%, at a latency cost of only 15-30ms. The post also argues against the "vector sidecar" pattern of running a separate vector database alongside your primary relational store, pointing to sync pipelines and consistency windows as operational debt that native vector support eliminates.

---

## NetBox TurboBulk: PostgreSQL COPY protocol at 24K objects/sec

NetBox Labs shipped TurboBulk for their cloud and enterprise tiers, bypassing the ORM entirely and going straight to PostgreSQL's native COPY protocol and bulk SQL statements. The standard REST API processes objects one at a time through the ORM at 100-200 objects/second. TurboBulk hits over 24,000 objects/second. In real-world testing against tens of millions of objects, a full export finished in about 10 minutes versus an estimated 23+ hours through the REST API, using under 500MB of memory. It supports JSONL and Parquet export, async writes with insert/upsert/delete, three validation modes, and dry-run mode.

---

## Toasty async ORM for Rust lands on crates.io

Toasty, built by the Tokio team, is an async ORM for Rust that supports both SQL and NoSQL backends, with DynamoDB as the first NoSQL target. It works as an application-level query engine that decouples your application schema from the database schema, which makes conditional updates and other patterns that are awkward in raw SQL easier to express. It's a 0.x release with breaking changes expected, but the foundation is stable enough to build on. Worth watching if you're running Rust services that need to talk to DynamoDB without hand-rolling conditional write logic.

---

## Also notable

- **pg_textsearch v1.0:** Tiger Data (Timescale) released a new PostgreSQL extension bringing BM25-ranked keyword search under a permissive Postgres license, positioning it as an alternative to ParadeDB's AGPL-licensed offering.
- **Estuary PostgreSQL CDC updates:** New release adds read-only CDC mode (no watermarks table writes), standby replica capture for PostgreSQL 16+, IAM auth for AWS/GCP/Azure, and per-partition stream capture.
- **IVF vs HNSW in Milvus:** Benchmarks across 1M to 100M vectors show HNSW wins on recall and latency under 50M vectors; IVF_SQ8 and IVF_PQ are better for larger datasets or memory-constrained environments. A two-stage IVF_PQ → HNSW re-rank pattern is also covered.
- **Inbox pattern with PostgreSQL:** Solid implementation walkthrough using `ON CONFLICT DO NOTHING` for idempotent inserts and `FOR UPDATE SKIP LOCKED` for safe concurrent batch processing, with `UNNEST` to minimize round-trips on batch updates.
- **AI workloads vs. legacy database architectures:** Agentic query patterns (dozens of concurrent queries in rapid succession) are exposing mismatches in systems built for batch reporting, pushing teams toward Postgres + ClickHouse splits and open table formats like Iceberg.
- **SageMaker Data Agent:** AWS added interactive charting, Snowflake SQL analytics, and AI-driven materialized view recommendations to SageMaker Unified Studio notebooks via natural language prompts.
- **Database selection framework:** A practical breakdown of how Netflix (Cassandra, 3M writes/sec), Instagram (PostgreSQL with PgBouncer and read replicas), and Twitter (Redis fan-out-on-write) chose databases based on access patterns rather than popularity.

## Similar posts on daily.dev

- [Replacing Database Sequences at Scale Without Breaking 100\+ Services](https://daily.dev/posts/replacing-database-sequences-at-scale-without-breaking-100-services-tev7fv07v) · InfoQ · 0 upvotes · 0 comments

---

Tags: [#backend](https://daily.dev/tags/backend), [#rust](https://daily.dev/tags/rust), [#postgresql](https://daily.dev/tags/postgresql), [#vector-search](https://daily.dev/tags/vector-search), [#aws-dynamodb](https://daily.dev/tags/aws-dynamodb)

[View this post on daily.dev](https://daily.dev/posts/coupang-kills-db-sequences-at-scale-hybrid-search-fixes-broken-rag-pipelines-945oae2ry)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/coupang-kills-db-sequences-at-scale-hybrid-search-fixes-broken-rag-pipelines-945oae2ry","headline":"Coupang kills DB sequences at scale, hybrid search fixes broken RAG pipelines","text":"A curated roundup of database engineering stories: Coupang replaced native DB sequences across 100+ services with a two-tier caching SDK hitting 50K sequences/second for under $1K/month on DynamoDB. A real-world RAG bug case shows hybrid search (vector + SQL filters) boosting Recall@5 from 72% to 94% on a 10M-row corpus. NetBox's TurboBulk uses PostgreSQL's COPY protocol to reach 24K objects/second versus 100-200/second through a standard ORM. Toasty, an async Rust ORM from the Tokio team, launched on crates.io with SQL and DynamoDB support. Also covered: pg_textsearch BM25 extension, Estuary PostgreSQL CDC updates, IVF vs HNSW benchmarks in Milvus, the inbox pattern with PostgreSQL, and a database selection framework drawing on Netflix, Instagram, and Twitter architectures.","url":"https://daily.dev/posts/coupang-kills-db-sequences-at-scale-hybrid-search-fixes-broken-rag-pipelines-945oae2ry","datePublished":"2026-04-04T04:17:41.504Z","dateModified":"2026-04-04T04:18:07.670Z","author":{"@type":"Organization","name":"Databases Digest","logo":"https://media.daily.dev/image/upload/s--ir1hdV8b--/f_auto,q_auto/v1773839400/logos/databases_digest?_a=BAMAMiiu0","url":"https://daily.dev/sources/databases_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/databases_digest","name":"Databases Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Databases Digest","item":"https://daily.dev/sources/databases_digest"},{"@type":"ListItem","position":3,"name":"Coupang kills DB sequences at scale, hybrid search fixes broken RAG pipelines"}]}
```

