[Paper Review] A Scalable Database for the Storage of Object-Centric Event Logs
This paper proposes a scalable, database-native implementation of Object-Centric Event Logs (OCEL) using MongoDB, enabling efficient storage and querying of large-scale event data by leveraging document-oriented persistence, indexing, and native aggregation. The approach outperforms in-memory JSON parsing by reducing memory pressure and supporting logs up to 100M events, with significant disk space savings via BSON compression.
Object-centric process mining provides a set of techniques for the analysis of event data where events are associated to several objects. To store Object-centric Event Logs (OCELs), the JSON-OCEL and JSON-XML formats have been recently proposed. However, the proposed implementations of the OCEL are file-based. This means that the entire file needs to be parsed in order to apply process mining techniques, such as the discovery of object-centric process models. In this paper, we propose a database storage for the OCEL format using the MongoDB document database. Since documents in MongoDB are equivalent to JSON objects, the current JSON implementation of the standard could be translated straightforwardly in a series of MongoDB collections.
Motivation & Objective
- To address the scalability limitations of file-based OCEL storage, which require full in-memory loading and exhaust system memory on large logs.
- To enable efficient, scalable storage and querying of object-centric event logs using a document database.
- To support advanced process mining operations—like lifecycle extraction and directly-follows graph computation—natively within the database to reduce data transfer and improve performance.
- To provide a production-ready, extensible toolchain for OCEL data ingestion, transformation, and analysis using MongoDB as the backend.
Proposed method
- Mapping the JSON-OCEL schema directly to MongoDB collections: 'ocel:events', 'ocel:objects', and 'ocel:others' as separate collections.
- Applying multikey indexes on 'ocel:omap' and 'ocel:activity' in events, and on 'ocel:id' and 'ocel:type' in objects to accelerate query execution.
- Leveraging MongoDB’s aggregation pipeline to perform object-centric process mining operations (e.g., lifecycle extraction) directly in the database using $unwind and $group stages.
- Supporting bidirectional conversion between JSON/XML-OCEL and MongoDB storage via dedicated import/export scripts.
- Utilizing MongoDB’s on-disk and in-memory computation hybrid model to handle large datasets beyond main memory capacity.
- Implementing native aggregation-based operations such as event counting per activity, object type statistics, and time-between-activities metrics within the database.
Experimental results
Research questions
- RQ1Can a document database like MongoDB effectively scale for storing and querying large-scale object-centric event logs beyond the limits of in-memory file-based parsing?
- RQ2How does the memory and disk usage of a MongoDB-based OCEL storage compare to traditional in-memory JSON loading for large event logs?
- RQ3To what extent can native database aggregation replace application-level computation in object-centric process mining?
- RQ4What performance and scalability characteristics does the MongoDB-based OCEL implementation exhibit across logs of increasing size (1M to 100M events)?
- RQ5Can the database-native approach support core process mining operations—such as lifecycle extraction and directly-follows graph computation—efficiently and with reduced data movement?
Key findings
- MongoDB successfully stored event logs up to 100M events, while the same workload caused out-of-memory errors during in-memory JSON parsing.
- Disk usage was significantly reduced via BSON binary compression, with 100M-event logs consuming only 36.5GB on disk despite 54.6GB in raw JSON.
- Index size grew substantially with data volume, reaching 16.9GB for the 100M-event log, but enabled fast query execution through fine-grained indexing.
- The mDFG computation time increased with data size but remained feasible due to MongoDB’s hybrid in-memory/on-disk processing, avoiding memory exhaustion.
- The database-native aggregation pipeline enabled efficient lifecycle extraction via $unwind and $group, reducing data transfer and enabling scalable analysis.
- The toolchain demonstrated full compatibility with existing OCEL standards and supported bidirectional conversion between JSON/XML and MongoDB formats.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.