Re: 15x slower PreparedStatement vs raw query

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Alex <cdalxndr(at)yahoo(dot)com>, Rick Otten <rottenwindfish(at)gmail(dot)com>
Cc: Justin Pryzby <pryzby(at)telsasoft(dot)com>, "pgsql-performa(dot)" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: 15x slower PreparedStatement vs raw query
Date: 2021-05-04 15:22:04
Message-ID: b6b22f2c59a0dede4271bec0deeb85efcb85abb2.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, 2021-05-04 at 13:59 +0000, Alex wrote:
> "Powerful general purpose relational database" but not smart...

Too smart can easily become slow...

> I propose a feature to use information from previously executed queries to adjust the query plan time accordingly.
> Reusing the same generic plan may and will lead to very long execution times.

AI can go wrong too, and I personally would be worried that such cases
are very hard to debug...

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Vijaykumar Jain 2021-05-04 15:50:19 Re: 15x slower PreparedStatement vs raw query
Previous Message Alex 2021-05-04 13:59:16 Re: 15x slower PreparedStatement vs raw query