Improving List Comprehension Database Queries (1989)
| Venue: | In Proceedings of TENCON'89 |
| Citations: | 29 - 3 self |
BibTeX
@INPROCEEDINGS{Trinder89improvinglist,
author = {Phil Trinder and Philip Wadler},
title = {Improving List Comprehension Database Queries},
booktitle = {In Proceedings of TENCON'89},
year = {1989},
pages = {186--192}
}
Years of Citing Articles
OpenURL
Abstract
The task of increasing the efficiency of database queries has recieved considerable attention. In this paper we describe the improvement of queries expressed as list comprehensions in a lazy functional language. The database literature identifies four algebraic and two implementation-based improvement strategies. For each strategy we show an equivalent improvement for queries expressed as list comprehensions. This means that welldeveloped database algorithms that improve queries using several of these strategies can be emulated to improve comprehension queries. We are also able to improve queries which require greater power than that provided by the relational algebra. Most of the improvements entail transforming a simple, inefficient query into a more complex, but more efficient form. We illustrate each improvement using examples drawn from the database literature. 1 Introduction The functional programming community is often accused of being too inward looking. Functional languages a...







