Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道从哪里可以关闭 postgresql 中的分析器,以及如果它们是简单的简单查询(不连接任何内容)、简单的 group by 、 order by 查询,它将对查询产生什么影响。
auto_vacuum 过程还对您的数据进行分析。你可以关掉它。
另一种选择是将 default_statistics_target 设置为 0,但在这两种情况下,queryplanner 都不会有任何关于如何执行查询的有用信息。大多数索引都不会被使用,如果使用了索引,它可能会使用错误的索引。
分析器的转动,使查询计划者变得盲目和愚蠢。您的大多数查询都会受到影响。