开发者

What kind of query optimization can Postgresql perform by gathering statistics?

My und开发者_Go百科erstanding is that mysql doesn't use any heuristics when doing query planning and postgresql does.

I'm wondering where I can learn about specifically what kinds of queries can be made more efficient given the collected statistics.

For example, I know that postgresql has merge and bitmap indexes, so based on historical data on the number of rows it expects to return it might choose to use indexes in these ways.


The manual has some chapters about this issue:

  • Genetic Query Optimizer
  • How the Planner Uses Statistics
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜