<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/what-is-orasort-understanding-oracle-s-sorting-aglorithm-in-simple-terms-deepsystemstuff-com-wyibijvwp" -->

---
title: What is Orasort? understanding Oracle’s Sorting...
description: Orasort is Oracle's internal sorting algorithm, whose patent (registered to Mark Callaghan) expired after its 20-year term in 2024 and entered the public...
canonical: https://daily.dev/posts/what-is-orasort-understanding-oracle-s-sorting-aglorithm-in-simple-terms-deepsystemstuff-com-wyibijvwp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: What is Orasort? understanding Oracle’s Sorting Aglorithm In Simple Terms – deepsystemstuff.com | daily.dev
og:description: Orasort is Oracle's internal sorting algorithm, whose patent (registered to Mark Callaghan) expired after its 20-year term in 2024 and entered the public...
og:url: https://daily.dev/posts/what-is-orasort-understanding-oracle-s-sorting-aglorithm-in-simple-terms-deepsystemstuff-com-wyibijvwp
og:image: https://api.daily.dev/og/posts/wyibiJVwp.png
og:image:alt: What is Orasort? understanding Oracle’s Sorting Aglorithm In Simple Terms – deepsystemstuff.com
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.

# What is Orasort? understanding Oracle’s Sorting Aglorithm In Simple Terms – deepsystemstuff.com

**[Programming Digest](https://daily.dev/sources/programmingdigest)** · 5 min read · 0 upvotes · 0 comments

## Summary

Orasort is Oracle's internal sorting algorithm, whose patent (registered to Mark Callaghan) expired after its 20-year term in 2024 and entered the public domain. Rather than comparing strings character by character, Orasort packs 8 bytes of a string into a 64-bit integer to leverage CPU registers, comparing larger chunks per cycle and reducing CPU work by roughly 5x. Since becoming public, open-source databases like MySQL and PostgreSQL have reportedly begun experimenting with integrating it, and it is described as reducing cloud computing costs through fewer CPU cycles. The piece also walks through Oracle's broader external sort process: loading record keys into a RAM sort buffer, spilling to disk in chunks for large datasets, and asynchronously writing and merging sorted runs back to disk.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://deepsystemstuff.com/how-oracles-secret-column-sorting-technique-became-public-after-its-patent-expired-making-sorting-5x-faster>

## Questions this post answers

### What is Oracle's Orasort sorting algorithm and how does it work?

Orasort is a database sorting technique that speeds up string comparisons by extracting 8 bytes at a time from two values, converting them into 64-bit integers, and comparing them using CPU registers instead of comparing one character at a time. Since a CPU register naturally holds 8 bytes, this reduces the number of CPU cycles needed, making sorting roughly 5x faster than traditional character-wise comparison.

_Developers optimizing database sort performance can find similar deep-dive explainers on daily.dev._

### When did the patent for Oracle's Orasort algorithm expire?

The patent, registered to Mark Callaghan, expired after reaching its 20-year term in 2024 and entered the public domain. This has allowed open-source database projects and cloud providers to study and adopt the underlying technique without licensing restrictions.

_Track when key database patents or licenses change status by following database engineering coverage on daily.dev._

## Similar posts on daily.dev

- [Expired Oracle Patent Opens Fast Sorting Algorithm to Open Source Databases](https://daily.dev/posts/expired-oracle-patent-opens-fast-sorting-algorithm-to-open-source-databases-aheya2t6f) · InfoQ · 0 upvotes · 2 comments
- [Hoare’s Rebuttal and Bubble Sort’s Comeback](https://daily.dev/posts/hoare-s-rebuttal-and-bubble-sort-s-comeback-gkcrqjicr) · Lobsters · 0 upvotes · 0 comments
- [Timsort Algorithm - A Deep Dive](https://daily.dev/posts/timsort-algorithm---a-deep-dive-ct45s74jg) · System Design Newsletter · 1 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#database](https://daily.dev/tags/database), [#oracle](https://daily.dev/tags/oracle)

[View this post on daily.dev](https://daily.dev/posts/what-is-orasort-understanding-oracle-s-sorting-aglorithm-in-simple-terms-deepsystemstuff-com-wyibijvwp)

```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":"TechArticle","headline":"What is Orasort? understanding Oracle’s Sorting Aglorithm In Simple Terms – deepsystemstuff.com","url":"https://daily.dev/posts/what-is-orasort-understanding-oracle-s-sorting-aglorithm-in-simple-terms-deepsystemstuff-com-wyibijvwp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/what-is-orasort-understanding-oracle-s-sorting-aglorithm-in-simple-terms-deepsystemstuff-com-wyibijvwp"},"datePublished":"2026-09-06T18:29:14.684Z","dateModified":"2026-10-15T02:22:13.194Z","description":"Orasort is Oracle's internal sorting algorithm, whose patent (registered to Mark Callaghan) expired after its 20-year term in 2024 and entered the public...","image":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","thumbnailUrl":"https://media.daily.dev/image/upload/s--HRgLpUt6--/f_auto/v1722860399/public/Placeholder%2003","isAccessibleForFree":true,"articleSection":"Programming Digest","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Programming Digest","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/4637f2287b44420aa9a44f432116043d","url":"https://daily.dev/sources/programmingdigest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/what-is-orasort-understanding-oracle-s-sorting-aglorithm-in-simple-terms-deepsystemstuff-com-wyibijvwp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,database,oracle","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Programming Digest","item":"https://daily.dev/sources/programmingdigest"},{"@type":"ListItem","position":3,"name":"What is Orasort? understanding Oracle’s Sorting Aglorithm In Simple Terms – deepsystemstuff.com"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/what-is-orasort-understanding-oracle-s-sorting-aglorithm-in-simple-terms-deepsystemstuff-com-wyibijvwp#faq","mainEntity":[{"@type":"Question","name":"What is Oracle's Orasort sorting algorithm and how does it work?","acceptedAnswer":{"@type":"Answer","text":"Orasort is a database sorting technique that speeds up string comparisons by extracting 8 bytes at a time from two values, converting them into 64-bit integers, and comparing them using CPU registers instead of comparing one character at a time. Since a CPU register naturally holds 8 bytes, this reduces the number of CPU cycles needed, making sorting roughly 5x faster than traditional character-wise comparison. Developers optimizing database sort performance can find similar deep-dive explainers on daily.dev."}},{"@type":"Question","name":"When did the patent for Oracle's Orasort algorithm expire?","acceptedAnswer":{"@type":"Answer","text":"The patent, registered to Mark Callaghan, expired after reaching its 20-year term in 2024 and entered the public domain. This has allowed open-source database projects and cloud providers to study and adopt the underlying technique without licensing restrictions. Track when key database patents or licenses change status by following database engineering coverage on daily.dev."}}]}
```

