Piatetsky-Shapiro, G. (1983). The optimal selection of secondary indices is NP-complete. ACM SIGMOD Record 13(2), 72–75. DOI 10.1145/984523.984530

Key takeaways

Read in full (NOTE-902). For one relation, a known mix of equality queries and updates, single-attribute secondary indexes, and a fixed upkeep charge per index on each update, choosing the index set that minimizes average transaction cost is NP-hard: minimum set cover reduces to it, each subset becoming an attribute and each element a query that any one of its attributes’ indexes can answer. The paper calls the problem NP-complete but states only the optimization version, and the proof is a sketch of about half a page. Storage is not in the model; the only price of an index is upkeep on updates. A variant with off-line updates under an update-cost budget is asserted NP-complete without proof. The paper does not cite or discuss Comer 1978.

Why this is here

QUESTION-114 cited Comer 1978 for “optimal index selection is NP-complete”. Comer could not be obtained, and a secondary account says it proves something else. This paper is the candidate for the workload-based result.