On 12/23/20 2:53 PM, Daniele Varrazzo wrote: > On Tue, 22 Dec 2020 at 22:36, Daniele Varrazzo > <daniele.varrazzo@gmail.com> wrote: >> >> On Tue, 22 Dec 2020 at 05:39, Vladimir Ryabtsev <greatvovan@gmail.com> wrote: >
> > Heads up about this: it's better than I thought! > > I wrote a first implementation of the prepared statements cache using > the query as a key, but it's actually enough to use the (query, types) > tuple in order to tell apart statements that are executed with > different types. This way even the "SELECT %s" case won't be a > problem. Of course a statement executed with a mix of types will be > prepared later than `prepare_threshold`, but I think it's perfectly
Alright I was following you until you got to above. I'm not following why it would overshoot prepare_threshold?