Configuring SQL-based process mining for performance and storage optimisation