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 に設定することもできますが、どちらの場合も、クエリ プランナーはクエリの実行方法に関する有用な情報を取得できません。ほとんどのインデックスは使用されず、インデックスが使用される場合、間違ったインデックスが使用される可能性があります。
アナライザーを回すと、クエリプランナーが盲目で愚かになります。ほとんどのクエリが影響を受けます。