Dynamic Indexability: The Query-Update Tradeoff for One-Dimensional Range Queries
Abstract
The B-tree is a fundamental secondary index structure that is widely used for answering one-dimensional range reporting queries. Given a set of keys, a range query can be answered in I/Os, where is the disk block size, the output size, and the size of the main memory buffer. When keys are inserted or deleted, the B-tree is updated in I/Os, if we require the resulting changes to be committed to disk right away. Otherwise, the memory buffer can be used to buffer the recent updates, and changes can be written to disk in batches, which significantly lowers the amortized update cost. A systematic way of batching up updates is to use the logarithmic method, combined with fractional cascading, resulting in a dynamic B-tree that supports insertions in I/Os and queries in I/Os. Such bounds have also been matched by several known dynamic B-tree variants in the database literature. In this paper, we prove that for any dynamic one-dimensional range query index structure with query cost and amortized insertion cost , the tradeoff must hold if . For most reasonable values of the parameters, we have , in which case our query-insertion tradeoff implies that the bounds mentioned above are already optimal. Our lower bounds hold in a dynamic version of the {\em indexability model}, which is of independent interests.
Cite
@article{arxiv.0811.4346,
title = {Dynamic Indexability: The Query-Update Tradeoff for One-Dimensional Range Queries},
author = {Ke Yi},
journal= {arXiv preprint arXiv:0811.4346},
year = {2008}
}
Comments
13 pages