From: | aditya desai <admad123(at)gmail(dot)com> |
---|---|
To: | Justin Pryzby <pryzby(at)telsasoft(dot)com>, Pgsql Performance <pgsql-performance(at)lists(dot)postgresql(dot)org>, Bruce Momjian <bruce(at)momjian(dot)us>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Subject: | Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration. |
Date: | 2021-04-03 17:36:57 |
Message-ID: | CAN0SRDGFVr3h4iWw=cfaYTdVRZ694ieFyN2oQLj4zSuVWC+z5Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-performance |
Hi Justin/Bruce/Pavel,
Thanks for your inputs. After setting force_parallel_mode=off Execution
time of same query was reduced to 1ms from 200 ms. Worked like a charm. We
also increased work_mem to 80=MB. Thanks again.
Regards,
Aditya.
On Sat, Apr 3, 2021 at 9:14 PM aditya desai <admad123(at)gmail(dot)com> wrote:
> Thanks Justin. Will review all parameters and get back to you.
>
> On Sat, Apr 3, 2021 at 9:11 PM Justin Pryzby <pryzby(at)telsasoft(dot)com> wrote:
>
>> On Sat, Apr 03, 2021 at 11:39:19AM -0400, Tom Lane wrote:
>> > Bruce Momjian <bruce(at)momjian(dot)us> writes:
>> > > On Sat, Apr 3, 2021 at 08:38:18PM +0530, aditya desai wrote:
>> > >> Yes, force_parallel_mode is on. Should we set it off?
>> >
>> > > Yes. I bet someone set it without reading our docs:
>> >
>> > >
>> https://www.postgresql.org/docs/13/runtime-config-query.html#RUNTIME-CONFIG-QUERY-OTHER
>> >
>> > > --> Allows the use of parallel queries for testing purposes even in
>> cases
>> > > --> where no performance benefit is expected.
>> >
>> > > We might need to clarify this sentence to be clearer it is _only_ for
>> > > testing.
>> >
>> > I wonder why it is listed under planner options at all, and not under
>> > developer options.
>>
>> Because it's there to help DBAs catch errors in functions incorrectly
>> marked as
>> parallel safe.
>>
>> --
>> Justin
>>
>
From | Date | Subject | |
---|---|---|---|
Next Message | vignesh C | 2021-04-03 17:37:16 | Re: Replication slot stats misgivings |
Previous Message | Tom Lane | 2021-04-03 17:16:27 | Re: SP-GiST confusion: indexed column's type vs. index column type |
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2021-04-03 17:41:50 | Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration. |
Previous Message | aditya desai | 2021-04-03 15:44:33 | Re: SELECT Query taking 200 ms on PostgreSQL compared to 4 ms on Oracle after migration. |