1
SQLBeginner#sets
Deliberately duplicating data to avoid expensive joins, typically in reporting or read-heavy analytics workloads. It trades write complexity and storage for read speed.
-- store the total on the order instead of summing items every read ALTER TABLE orders ADD total_amount DECIMAL(10,2);