Querying temporal and versioned data is a classic problem that has been studied for more than four decades. In a temporal database, a record version is characterized by a temporal validity interval. Queries on temporal databases retrieve record versions that were valid at a time point or sometime within a time interval and satisfy a selection predicate on some object attribute. There is little recent work on indexing temporal data for queries with range filters on a given attribute, especially considering modern commodity hardware. We revisit this classic problem by proposing AITTI, an in-memory index,which uses an interval tree as a backbone to index the time dimension. The record versions in each interval tree node are organized by a new data structure tailored for open-ended range queries in the time-attribute domain. We theoretically analyze the search and update performance of AITTI and its component structures. We experimentally show the superiority of our index over previous work on real data.
- g++/gcc compiler
- Standard C++ libraries
- Boost library (required for RTree baseline)
./run.shThis will build all executables and run a complete experiment. Results saved to benchmark.log.
# Build all executables
make clean && make all
# Run AITTI
./query_AITTI.exe -r 5 data/books_data_example.txt data/books_queries_example.txt
# Run aHINT
./query_aHINT.exe -e 86400 -n 8 -r 5 data/books_data_example.txt data/books_queries_example.txt
# Run RTree
./query_RTree.exe -r 5 data/books_data_example.txt data/books_queries_example.txtParameters:
-r N: Number of runs per query-e N: Epsilon parameter (aHINT only)-n N: Number of attribute partitions (aHINT only)
- AITTI (our method)
- aHINT
- RTree
Example data and queries are provided in the data/ directory:
data/books_data_example.txt- Interval datadata/books_queries_example.txt- Query intervals
If you use this code in your research, please cite our [SIGMOD 2027 paper]:
@inproceedings{simatis2027aitti,
title={AITTI: Augmented Interval Tree for Temporal Indexing},
author={Simatis, Panagiotis and Bouros, Panagiotis and Amagata, Daichi and Tsakalidis, Konstantinos and Mamoulis, Nikos},
booktitle={Proceedings of the 2027 International Conference on Management of Data},
year={2027}
}