---
answer: direct
beat: system-design
source: 1 article · updated: September 1, 2026
---

Why can't a hash index handle range queries?

A hash function scrambles input values into effectively random bucket positions by design — that's what makes lookups O(1). But it destroys any ordering relationship between keys: two values that are numerically close can hash to buckets that are nowhere near each other. Range scanning depends on adjacent values being stored near each other, which hashing specifically prevents.

Answered in

What Actually Happens Inside a Database Index: The Data Structures

An index trades disk I/O for lookup speed. Here's how B-trees, hash tables, and bitmap indexes each make that trade differently.

Crashtech Editorial September 1, 2026 System Design

Read the full analysis

Other questions this article answers

More system design questions

Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design beat.