Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t37Uh-00AVHc-6l for pgsql-general@arkaria.postgresql.org; Tue, 22 Oct 2024 05:31:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t37Uf-00ER6Q-Hf for pgsql-general@arkaria.postgresql.org; Tue, 22 Oct 2024 05:31:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t37Uf-00ER6H-6i for pgsql-general@lists.postgresql.org; Tue, 22 Oct 2024 05:31:45 +0000 Received: from mail-oo1-xc32.google.com ([2607:f8b0:4864:20::c32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t37Uc-002Kzg-Qn for pgsql-general@lists.postgresql.org; Tue, 22 Oct 2024 05:31:44 +0000 Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-5ebc0992560so1036334eaf.0 for ; Mon, 21 Oct 2024 22:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729575100; x=1730179900; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=6Mp8BSRCiKnFVjji8lkAfq+m61t0KEp4qxxiHlc3Z3g=; b=YjyW9t5UnI8uyzKM9rUtRt3GtrO8+J/+XjsK0tXFOOWWfFF+f8cCIO/5YqbmKsyIch XyDSlcuhYLAaKBp3VCfXnuZadkEEeoQIeZ0r0psjacKqs77B7ii1I1TlaUnGAHGnl8G5 qJn2KnJYYG1Dr80eedPDKeLy0sxk9wAnSZDmtnouSNiTvU8vSb/xG1UI0nfy1+lcZv9b RIN4WPFWF/Gk00C/znqqAOBqa8Drhs0efNNGQsekGl3Rl19EcF13f+0RJsulRNe2yFcy Zp339h0RCQxrn92pysD3PydxiKTcDMWApyHDUAgOZEcAd1LM2luQPfhUwXDki7/EhJtX Ur5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729575100; x=1730179900; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6Mp8BSRCiKnFVjji8lkAfq+m61t0KEp4qxxiHlc3Z3g=; b=jUNFJtGDpjh2ls+fwBZ4QaRymv2/4IQVtUEIg0/xnMMhVUqaw7Jzm8GWtv7W+8hWEn dc6oEXE7OOejUE29HmtFYyg4SYZa3CqTqR2bqRD8h+tj5+YmO5mM8YqkGtPyc1zv4vhw e5DVFs3P4dPCfPkymMYB3mHHiveTWAYpfVciWCFnwVo6gpabMCNU2XwuMZW4sprAZwc4 UikwRuCqxswie/LeNQxzvaUHVM2g4aW21oVUak80JRtTZI0K8z7QA5cZQgDvXVGbyFg5 f8lXoM7sg7gbmmjtlFG9L/GSnP5R+A844t+Ki1nI00/aMjh/KDreEHoL3se8XO6lsXM8 joew== X-Gm-Message-State: AOJu0YxKhLB1TXKoaI1IUuzJ6cYHnAKLY6T4pLXJGRoDRnWUfTucGyW1 249Ldg2w68o68+SCJTGIkQR3+XW7YWtGE12gHCWk8i6cXwpltFqGUnk54qZI+CEG01AJ57KkOvQ aiUjGj0CqUFxufnwMKlQSGuEhMvUeHaTU X-Google-Smtp-Source: AGHT+IGEhWFXciWogAUc1cgH+FPO22kpAcMARwo3IBekUYsvzs41sAnig6LHtPlyAWG+mepM/xp+7ot+E5HaI0TLZ1w= X-Received: by 2002:a05:6871:58a:b0:270:3139:59fe with SMTP id 586e51a60fabf-2892c30add5mr11745175fac.12.1729575100039; Mon, 21 Oct 2024 22:31:40 -0700 (PDT) MIME-Version: 1.0 References: <20241016213610.wbfqj3r7gg5ba6eh@hjp.at> In-Reply-To: <20241016213610.wbfqj3r7gg5ba6eh@hjp.at> From: yudhi s Date: Tue, 22 Oct 2024 11:01:27 +0530 Message-ID: Subject: Re: Query performance issue To: pgsql-general@lists.postgresql.org, hjp-pgsql@hjp.at Content-Type: multipart/alternative; boundary="000000000000734d9606250a15f5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000734d9606250a15f5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Oct 17, 2024 at 3:06=E2=80=AFAM Peter J. Holzer = wrote: > > The execution plan looks like a postgresql execution plan, not a mysql > execution plan. Did you run this query on postgresql? That may be > interesting for comparison purposese, but ultimately it is useless: You > won't get mysql to work like postgresql, and any tips to speed up this > query on postgresql (which is all you can expect on a postgresql mailing > list) probably won't work on mysql. > > > Tried running the same in postgres and below is the plan from bothe postgres and mysql. Can you please guide me to understand , if anything else can be done to make it better? https://gist.github.com/databasetech0073/746353a9e76d5e29b2fc6abdc80cdef8 --000000000000734d9606250a15f5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, Oct 17, 2024 at 3:06=E2=80=AFAM P= eter J. Holzer <hjp-pgsql@hjp.at= > wrote:

The execution plan looks like a postgresql execution plan, not a mysql
execution plan. Did you run this query on postgresql? That may be
interesting for comparison purposese, but ultimately it is useless: You
won't get mysql to work like postgresql, and any tips to speed up this<= br> query on postgresql (which is all you can expect on a postgresql mailing list) probably won't work on mysql.

=C2=A0 =C2=A0 =C2=A0

Tried running = the same in postgres and below is the plan from bothe postgres and mysql. C= an you please guide me to understand ,=C2=A0 if anything else can be done t= o make it better?


=
--000000000000734d9606250a15f5--