Abstract

Reconstructing session trajectories from append-only event logs in large-scale data warehouses can present challenges, as some methods may lead to inefficient full-history scans, session truncation across time windows, or may use write permissions that conflict with read-only data governance policies. A disclosed method can use a stateless, two-window structured query language (SQL) query to perform such reconstructions. A first, narrow closure seed scan can identify sessions that appear to have concluded within a specified evaluation window, based on an inactivity timeout. A second, wider bounded-lookback scan can then retrieve the event histories for those identified sessions, for example, using a semi-join. This approach can facilitate data partition pruning for efficient querying and can retrieve session histories without truncation, operating within read-only access constraints and using common SQL constructs.

Creative Commons License

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 License.

Share

COinS