全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Selectivity, cardinality estimate, equi-depth histogram?

又称: selectivity · cardinality estimate · equi-depth histogram

Definition 22.6 University Computer Science — Year 3 · 第 22 章 — Query Processing and Optimisation

The selectivity of a condition on a relation is the fraction of its tuples that satisfy it. A cardinality estimate is the optimiser’s prediction of the number of tuples an operator will output, computed from stored statistics. An equi-width histogram of a column cuts its range into buckets of equal width and stores each bucket’s count; an equi-depth histogram cuts it at quantiles, so that every bucket holds about the same number of tuples. Within a bucket, values are assumed evenly spread, and each distinct value equally frequent.

在原文中阅读 →