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

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.

主站蜘蛛池模板: 广南县| 田东县| 邳州市| 江城| 民和| 阿勒泰市| 岳普湖县| 新龙县| 拜泉县| 肥乡县| 肥西县| 海丰县| 祥云县| 民勤县| 玛沁县| 山东| 商城县| 上虞市| 五华县| 陆河县| 永新县| 龙口市| 濮阳市| 射阳县| 明溪县| 徐水县| 两当县| 始兴县| 依安县| 郑州市| 五大连池市| 华阴市| 奉贤区| 和平县| 安国市| 醴陵市| 灯塔市| 长岛县| 凌云县| 武隆县| 清水河县|