Abstract
Indexing bitemporal data where time dimensions extend continuously into the present ("now-relative") poses significant challenges for traditional spatial indices. This paper presents the GR-tree, an extension of the R*-tree that utilizes non-rectangular, stair-shaped bounding regions and time-parameterized algorithms. Experimental results demonstrate that the GR-tree reduces dead space and overlap, leading to search performance improvements of 3 to 5 times over standard maximum-timestamp approaches.
Introduction
Bitemporal databases track both valid time (the period a fact is true in reality) and transaction time (the period a fact is stored in the database). When these times are "now-relative"—meaning they extend to the current time and continue to grow—they create dynamic geometries in the 2D bitemporal space. Managing these growing regions efficiently is critical for high-performance temporal queries.
The Challenge of Growing Data
Traditional spatial indices like the R-tree typically handle "now" by substituting it with a large "maximum timestamp" (e.g., 12/31/9999). This results in massive, artificially large minimum bounding rectangles (MBRs) that contain significant "dead space" and overlap heavily with other entries, forcing the search to traverse multiple irrelevant paths.
As shown in Case 1, a now-relative record forms a rectangle that expands along the transaction time axis. When multiple such records are grouped, the resulting rectangular bounding box becomes increasingly inefficient as time passes, leading to a degradation in query performance.
The GR-Tree Solution
The GR-tree (General Region tree) addresses these inefficiencies through several key innovations. Instead of static timestamps, index nodes explicitly store variables like NOW and UC (Until Changed), allowing the index to understand that a region is actively growing.
Furthermore, the GR-tree allows internal nodes to be bounded by stair-shaped regions rather than just rectangles. This "hugs" the underlying growing data more tightly, drastically reducing dead space.
Case 3 illustrates a complex growing stair-shape where both valid and transaction time are now-relative. By allowing the index to use these exact geometries for bounding, the GR-tree eliminates the overlap that plagues rectangular approximations. To maintain this efficiency, the authors modified standard R-tree algorithms to be time-parameterized*, optimizing the tree structure for its entire operational lifespan (e.g., 10,000 time units into the future) rather than just the current moment.
Key Results
Evaluations using synthetic workloads show that the GR-tree consistently outperforms traditional methods. By segregating static and growing data and optimizing for future overlap, the GR-tree achieves a 3-5x reduction in disk I/O during search operations. This work highlights that for temporal data, the shape of the index regions and the timing of optimization are critical for maintaining performance in dynamic environments.
Summary updated