Materialized View Pattern
A design pattern to handle read workload efficiently
You need to design a product recommendation solution for an e-commerce site to handle high customer traffic with lower latency and quick response time. The recommendation must take care of the customer's previous purchases and items bought by other customers who are buying similar products and recommend new items.
A complex query using multiple base tables, different joins, and aggregating data from various sources decreases the system's performance.