This document discusses histograms in MySQL 8.0. It begins with a motivating example showing how histograms can help optimize join ordering. It then provides a quick overview of how to create and inspect histograms. The bulk of the document explains how histograms are structured and used, including examples of estimating selectivity from histograms. It concludes with some advice on when histograms are particularly useful for query optimization.