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

Making Use of Indexes

In Chapter 2, Understanding Transactions and Locking, 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 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. To make my point: there is no way to achieve good performance without proper indexing, so always make it a point to check the indexing if performance is bad.

This is the reason behind dedicating an entire chapter to indexing alone. This will give you as many insights as possible.

In this chapter, we will cover the following topics:

  • Understanding simple queries and the cost model
  • Improving speed using clustered tables
  • Understanding additional B-tree features
  • Introducing operator classes
  • Understanding PostgreSQL index types
  • Achieving better answers with fuzzy searching
  • Understanding full-text search

By the end of this chapter, you will understand how indexes can be used beneficially in PostgreSQL.

 

主站蜘蛛池模板: 通海县| 陆丰市| 镇康县| 固镇县| 分宜县| 瑞昌市| 南安市| 武邑县| 科尔| 潮州市| 襄城县| 安平县| 株洲市| 宁波市| 乐东| 察雅县| 新邵县| 玛纳斯县| 高平市| 怀宁县| 安阳市| 嘉义市| 福清市| 资中县| 日照市| 东乡族自治县| 民乐县| 景东| 扬州市| 郸城县| 和平县| 北流市| 巴马| 扎鲁特旗| 固镇县| 灌阳县| 行唐县| 天长市| 榆社县| 上犹县| 磐石市|