This thesis presents Elephant Meets Duck, a disaggregated HTAP architecture that mitigates OLTP/OLAP interference while improving cost efficiency in a lakehouse setting. The proposed stack places mutable operational state in PostgreSQL (hot store), mi...
This thesis presents Elephant Meets Duck, a disaggregated HTAP architecture that mitigates OLTP/OLAP interference while improving cost efficiency in a lakehouse setting. The proposed stack places mutable operational state in PostgreSQL (hot store), migrates finalized historical records into Apache Iceberg on object storage (cold store), and executes analytical queries through DuckDB as a federated, vectorized compute head. The key idea is mutability-based tiering, where data is moved to the cold tier only after it becomes effectively immutable (e.g., update-once finalized), rather than continuously replicating the entire transactional dataset into an OLAP replica.
A central contribution is a correctness contract based on atomic publication and monotonic watermarks: watermarks advance only after a successful Iceberg commit, and hybrid queries route records across tiers using disjoint predicates, ensuring no duplicates and no gaps despite lagging physical cleanup. We evaluate the system using py-tpcc with CHbenchmark-style OLAP injection, comparing a PostgreSQL-only baseline against the Hybrid mode that routes OLAP to DuckDB over Iceberg. The results show that Hybrid consistently improves TPS under analytical injection (e.g., ~23.2% at p=1% and ~14.8% at p=10% for W=1, C=1), demonstrating that disaggregated federation with lifecycle-aware tiering can effectively reduce OLTP/OLAP contention in mixed workloads.