← Back to all projects
Year: 2026 Role: Author & Developer

E-Commerce Platform (Bachelor's Thesis)

Bachelor's thesis on intelligent query routing for polyglot persistence: an ML model routes each query to the faster database (PostgreSQL or MongoDB), tested on a realistic e-commerce platform.

PostgreSQLMongoDBPythonscikit-learnXGBoostDocker

My bachelor’s thesis “Intelligent Query Routing for Polyglot Persistence” investigates whether machine learning can predict, for each individual database query, which of two databases will answer it faster. The realistic application domain is an e-commerce platform with around 1.14 million records.

Polyglot persistence as the foundation

The same dataset is modelled in two worlds: relational in PostgreSQL (3NF with an EAV part) and document-oriented in MongoDB (embedded documents). Both run under identical, fair conditions (the same CPU and RAM limits in containers) so the comparison holds up.

Approach

Results

The whole setup is built to be reproducible: fixed seeds, versioned configuration, one commit per measurement step and figures generated only by script.

Technically a Python evaluation pipeline (pandas, scikit-learn, XGBoost, sqlglot) against PostgreSQL and MongoDB in Docker, documented throughout in a lab journal.