IT lexicon › Database › Sequential scan

Sequential scan

Database På svenska → Updated: 2026-11-10

An access method where the database reads all records in order from beginning to end to find matching values.

Sequential scan is the simplest access method—the database steps through each record one at a time until it finds what it seeks. It is slow for large tables (millions of records) but unavoidable when no index exists, or when the query covers so much data that index-based access would be slower than a full scan.

In modern SQL optimizers, sequential scan is a strategy often chosen for small tables or very wide range queries ("all orders from this year"). Early databases used sequential scanning as the default for nearly everything—indexes were expensive both in storage and during updates. Today it is a fallback, not the first choice.

← Back to the lexicon