# How I Invented Orasort: A 5X Faster Adaptive Sort Algorithm for Oracle

Original title: Common prefix skipping, adaptive sort

> Hacker News story 48810218 · language: en · submitted 2026-07-06
> Web version: https://zeli.app/story/48810218
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 5 · by [theanonymousone](<https://news.ycombinator.com/user?id=theanonymousone>) · 💬 0
[original](<http://smalldatum.blogspot.com/2026/01/common-prefix-skipping-adaptive-sort.html>) · [HN discussion](<https://news.ycombinator.com/item?id=48810218>)

## Summary

I developed a new in-memory sort algorithm called Orasort while working at Oracle, which eventually landed in 10gR2. By using common prefix skipping and adaptively switching between quicksort and radix sort, the algorithm achieved roughly five times the performance of the previous method. I tested this on various hardware, from old PowerPC Macs to Sun servers, proving its efficiency for large database keys despite some worst-case risks.

## Key quote

> And that was all the motivation I needed to leave Oracle -- first for a startup, and then to Google and Facebook.

---

## Cite

- Page: https://zeli.app/story/48810218
- Date: 2026-07-06
- Source: smalldatum.blogspot.com (http://smalldatum.blogspot.com/2026/01/common-prefix-skipping-adaptive-sort.html)
- Hacker News: https://news.ycombinator.com/item?id=48810218

## Other languages

- zh: https://zeli.app/zh/story/48810218 · markdown: https://zeli.app/zh/story/48810218.md
- ja: https://zeli.app/ja/story/48810218 · markdown: https://zeli.app/ja/story/48810218.md
- ko: https://zeli.app/ko/story/48810218 · markdown: https://zeli.app/ko/story/48810218.md
- de: https://zeli.app/de/story/48810218 · markdown: https://zeli.app/de/story/48810218.md
- es: https://zeli.app/es/story/48810218 · markdown: https://zeli.app/es/story/48810218.md
