encyclopegia.org

Partial index

In databases, a partial index, also known as filtered index, is an index which has some condition applied to it so that it includes a subset of rows in the table. This allows the index to remain small, even though the table may be rather large, and have extreme selectivity. Suppose you have a transaction table where entries start out with STATUS = 'A' (active), and then may pass through other statuses ('P' for pending, 'W' for "being worked on") before reaching a final status, 'F', at which point it is no longer likely to be processed again. In PostgreSQL, a useful partial index might be defined as: create index partial_status on txn_table (status) where status in ('A', 'P', 'W'); This index would not bother storing any of the millions of rows that have reached "final" status, 'F', and would allow queries looking for transactions that still "need work" to efficiently search via this index. Similarly, a partial index can be used to index only those rows where a column is not null, which will be of benefit when the column usually is null.…

In databases, a partial index, also known as filtered index, is an index which has some condition applied to it so that it includes a subset of rows in the table. This allows the index to remain small, even though the table may be rather large, and have extreme selectivity. Suppose you have a transaction table where entries start out with STATUS = 'A' (active), and then may pass through other statuses ('P' for pending, 'W' for "being worked on") before reaching a final status, 'F', at which point it is no longer likely to be processed again. In PostgreSQL, a useful partial index might be defined as: create index partial_status on txn_table (status) where status in ('A', 'P', 'W'); This index would not bother storing any of the millions of rows that have reached "final" status, 'F', and would allow queries looking for transactions that still "need work" to efficiently search via this index. Similarly, a partial index can be used to index only those rows where a column is not null, which will be of benefit when the column usually is null. create index partial_object_update on object_table (updated_on) where updated_on is not null; This index would allow the following query to read only the updated tuples: select * from object_table where updated_on is not null order by updated_on; It is not necessary that the condition be the same as the index criterion; Stonebraker's paper below presents a number of examples with indexes similar to the following: create index partial_salary on employee(age) where salary > 2100; ==Support== In SQL Server, this type of index is called a filtered index. Partial indexes have been supported in PostgreSQL since version 7.2, released in February 2002. SQLite supports partial indexes since version 3.8.0. MongoDB supports partial indexes since version 3.2. ==References== ==External links== The Case For Partial Indexes

References

No reference rows published for this article.

Cite this article

MLA

"Partial index." encyclopegia.org, 2026, https://encyclopegia.org/wiki/partial-index. Accessed 25 November 2026.

Chicago

"Partial index." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/partial-index.

APA

encyclopegia.org. (2026). Partial index. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/partial-index

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
release date2002Wikipedia

Related articles

Index Librorum Prohibitorum

stub · references available

Roud Folk Song Index

stub · references available

stock market index

stub · references available

color index

stub · references available

Hoover index

stub · references available

AMX index

stub · references available

ramp travel index

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1370514467 · 0.5 · snapshot enwiki-001370514467

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.