全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Left-deep plan, interesting order, cost-based optimiser?

又称: left-deep plan · cost-based optimiser · interesting order

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

A left-deep plan joins one stored relation at a time: every join has a stored relation as its right input. A cost-based optimiser enumerates plans, estimates the cost of each from statistics, and keeps the cheapest. An interesting order is a sort order of an intermediate result that a later operator can use, such as the order on a join column needed by a later sort–merge join.

The sets of relations of a chain query R_1 - R_2 - R_3 - R_4. The dynamic programming fills the shaded sets from the bottom up; the grey ones, on the right, would need a Cartesian product and are skipped. Each line is a join that is costed.
The sets of relations of a chain query R1−R2−R3−R4R_1 - R_2 - R_3 - R_4. The dynamic programming fills the shaded sets from the bottom up; the grey ones, on the right, would need a Cartesian product and are skipped. Each line is a join that is costed.
在原文中阅读 →