Home / Companies / Tiger Data / Blog / Post Details
Content Deep Dive

PostgreSQL DISTINCT: TimescaleDB’s SkipScan Under Load

Blog post from Tiger Data

Post Details
Company
Date Published
Author
James Blackwood-Sewell
Word Count
815
Company Posts That Month
17
Language
English
Hacker News Points
8
Post removed?
No
Summary

The text discusses the efficiency of DISTINCT queries in PostgreSQL and how TimescaleDB's SkipScan feature can optimize these queries by up to 10,548x at p50 and 9,603x at p95. It explains that standard PostgreSQL doesn't pull unique values directly from ordered indexes, leading to slowdowns as tables grow larger. SkipScan enhances the efficiency of SELECT DISTINCT ON .. ORDER BY queries by allowing PostgreSQL to directly jump to each new unique value within an ordered index, skipping over intermediate rows. The text also presents a benchmark comparing SkipScan with standard PostgreSQL in a more realistic environment with ingest and query running at the same time. The results show that SkipScan performs significantly faster than standard PostgreSQL and maintains stable performance throughout the run.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 3,107 740 193 -25%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.