Conceptual
Login

Workload-Aware Column Imprint Hash Joins for Edge Database Query Processing

On a resource-limited edge node, a hash join can skip most of its probe-side scan if each cache line of the probe column carries a column imprint: a small bit vector marking which value bins appear in that line. The baseline places bin borders by equal height over the data. The workload-aware variant places them by the queries instead. It mines past queries for the attributes and value ranges they touch, clusters those ranges, forecasts next week's frequency per cluster with ARIMA, and gives more bins to the ranges that will be asked for. The hash table is then built only from tuples in predicted bins, and a query ORs its own bit vector against each imprint to fetch only the cache lines that can match. On TPC-H, a skewed TPC-H variant and a transit dataset this halves the cache lines read (54% fewer) and cuts query time by about 10%, at the price of about 2% more build time. The lesson is that an index's bin layout should follow the questions asked, not only the data stored.