官术网_书友最值得收藏!

Making Use of Indexes

In Chapter 2, Understanding Transactions and Locking, you learned concurrency and locking. In this chapter, it is time to attack indexing head on. The importance of this topic cannot be stressed enough—indexing is (and will most likely remain) one of the most important topics in the life of every database engineer.

After 18 years of professional, full-time PostgreSQL consulting and PostgreSQL 24x7 support (www.cybertec-postgresql.com), I can say one thing for sure—bad indexing is the main source of bad performance. Of course, it is important to adjust memory parameters and all that. However, it is all in vain if indexes are not used properly. There is simply no replacement for a missing index.

Therefore, I have dedicated an entire chapter to indexing alone to give you as many insights as possible.

In this chapter, you will learn these topics:

  • When does PostgreSQL use indexes?
  • How does an optimizer handle things?
  • What types of indexes are there and how do they work?
  • Using your own indexing strategies

At the end of the chapter, you will be able to understand how indexes can be used beneficially in PostgreSQL.

主站蜘蛛池模板: 玉环县| 凤凰县| 武隆县| 林甸县| 昂仁县| 磴口县| 孙吴县| 凤台县| 文昌市| 攀枝花市| 民乐县| 巴楚县| 镇雄县| 江达县| 名山县| 咸宁市| 原阳县| 定襄县| 隆德县| 当涂县| 仲巴县| 密山市| 陆河县| 阿拉善左旗| 介休市| 普安县| 阿拉善盟| 扎鲁特旗| 招远市| 铜川市| 休宁县| 正宁县| 方山县| 昆山市| 鸡东县| 青岛市| 威远县| 法库县| 江源县| 舒兰市| 清苑县|