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

Making Use of Indexes

In the previous chapter, you learned about 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 stay as) one of the most important topics in the life of every database engineer.

After 17 years of professional, full-time PostgreSQL consulting and PostgreSQL 24x7 support, 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 the 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.

主站蜘蛛池模板: 雅安市| 洪泽县| 孝昌县| 岱山县| 壶关县| 云龙县| 东阳市| 丘北县| 海城市| 新蔡县| 宾川县| 西青区| 嘉峪关市| 奉新县| 临沭县| 合川市| 宝鸡市| 康马县| 凉山| 大丰市| 宣城市| 东阳市| 凌源市| 鹤岗市| 翼城县| 出国| 保亭| 芮城县| 紫云| 吉安县| 建昌县| 揭东县| 通辽市| 马龙县| 潜山县| 体育| 蓬溪县| 乌兰察布市| 商水县| 嘉兴市| 陕西省|