Re: Top -N Query performance issue and high CPU usage

From: Thiemo Kellner <thiemo(at)gelassene-pferde(dot)biz>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Top -N Query performance issue and high CPU usage
Date: 2026-02-05 11:32:03
Message-ID: 3cb77721-f9a4-4600-a40a-55c69f89df25@gelassene-pferde.biz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

A nested loop is not bad per se, at least in Oracle. It depends on the data. If the number of rows participating in the join table are very unequal, the NL is the more efficient join. I would presume that every join of a fact table with a dimension table belongs to that category.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Sophie Alpert 2026-02-05 19:16:29 Re: Is this expected concurrency behaviour for EvalPlanQual and ctid?
Previous Message yudhi s 2026-02-05 08:35:49 Re: Top -N Query performance issue and high CPU usage